Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: Scripting DTD's

From: Christian Wolfgang Hujer <Christian.Hujer@itcqis.com>
Date: Fri, 14 Nov 2003 09:03:31 +0100
To: AaronEldreth@cs.com, www-html@w3.org
Message-Id: <200311140903.34650.Christian.Hujer@itcqis.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Aaron,


Am Freitag, 14. November 2003 03:09 schrieb AaronEldreth@cs.com:
> A friend and I were talking about the advantages of XHTML 2.0, and were
> also thinking about the DTDs and how beneficial they are. Why not create a
> set of general scripting DTD's (like one for javascript, vbscript, and
> ecmascript). If someone doesn't like one of those languages, they can get a
> copy of the DTD and edit it to suit their needs? Or better yet, have a
> program that would make a script DTD for them? Since XHTML 2 is still in
> devolopment, the SDTD (Scripting DTD) could be added, and included for the
> final relese of XHTML 2.
I can't see the point.
What's scripting got to do with XHTML DTD's or Schemata?

In case you don't know, a DTD can only create a simply ruleset of validating 
XML relevant aspects of a document. Usual scripting languages like ecmascript 
(which is javascript) or vbscript or perl are beyond that scope because their 
syntax is not based on XML.
It's impossible to validate a script using a DTD.

Also, the current form handling scripts in documents with the <script/> 
element is independent of the scripting language because the language's 
MIME-Type is used in the @type attribute of the <script/> element:

<!-- ... -->
<script type="text/javascript"><![CDATA[
window.alert("Buh!");
]]></script>
<!-- ... -->

(Of course, the CDATA section is not really neccessary in this example, it is 
only for not getting problems with < and & characters in scripts)

The attribute type of the @type attribute currently is CDATA (%ContentType or 
something similar), you can fill in any valid Mime Type.


If I got you complete wrong and you mean something else, please repeat your 
question and give some examples.


Bye, have a nice weekend
- -- 
ITCQIS GmbH
Christian Wolfgang Hujer
Geschäftsführender Gesellschafter (Shareholding CEO)
Telefon: +49  (0)89  27 37 04 37
Telefax: +49  (0)89  27 37 04 39
E-Mail: Christian.Hujer@itcqis.com
WWW: http://www.itcqis.com/ 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/tIxVzu6h7O/MKZkRAp98AKDBlRAUBinbM/JjPap4VM6atIcl6gCeOJoL
/KOQnhQSItTAGKHINMqR62Y=
=EW8M
-----END PGP SIGNATURE-----
Received on Friday, 14 November 2003 03:06:12 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.