Re: [xsl] lost the <!Doctype declaration in the transform...

Subject: Re: [xsl] lost the <!Doctype declaration in the transform...
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 7 Nov 2001 20:23:05 -0700 (MST)
Ben Skelton wrote:
> I seem to have lost the <!Doctype declaration in the transform...

The document type declaration is not intended for the application.
It is only for the XML parser and the document author -- just like
entity declarations and entity references, CDATA section boundaries,
the encoding declaration, and the bits & bytes that comprise the
encoded document.

>From within XSLT you only have access to those things that are in
the XPath/XSLT data model, which are essentially only those things
that are intended for the application. You don't operate on the
markup in the original document; you operate on the logical
structures implied by some of that markup. It is the parser's job
to sift through the markup and just tell the application what
those structures are.

   - Mike
  mike j. brown,  |  xml/xslt:
  denver/boulder, colorado, usa   |  personal:

 XSL-List info and archive:

Current Thread