[Home] [By Thread] [By Date] [Recent Entries]

  • From: Paul Prescod <paul@p...>
  • To: XMLDev list <xml-dev@i...>
  • Date: Mon, 06 Sep 1999 09:45:13 -0700

This "stylesheet as schema" idea comes around every so often but I think
that it has one major flaw: stylesheets cannot drive syntax directed
editors.

> - XSLT is be "too strong". After all, it is Turing complete.
> 
> XSchemas are already stronger then DTDs, for a good reason, so this might be
> an advantage. Otherwise, it might be useful to define a subset of XSLT to
> use in "schema" stylesheets.

>From a mathematical point of view, I don't think that XSchemas are much
stronger than DTDs. The set of tag-based languages they can describe are
pretty much the same. The XSLT set of languages would be radically
different. What's the XSLT equivalent for this content model:

((a*,(b|c)+,d)+|(d,(b|c)*,d?)+)

On the other hand there are constraints that XSLT could support that
schemas probably could not.

 Paul Prescod

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



  • References:
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member