This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: AS-IS Output in XSL
- To: xsl-list at mulberrytech dot com
- Subject: Re: AS-IS Output in XSL
- From: Mike Brown <mike at skew dot org>
- Date: Wed, 7 Jun 2000 11:57:51 -0600 (MDT)
- Reply-To: xsl-list at mulberrytech dot com
> I want a non-closing tag to appear as follows:
>
> <!DOCTYPE something something_else_but_not_an_attribute blah blah>
A Document Type Declaration is a logical structure that is not accounted
for in the XSLT/XPath data model, and thus you can't create it in the
result result tree like you would an element. You can, however, use the
feature of XSLT that instructs the XSLT processor to emit a Document Type
Declaration ahead of the byte-serialized version of the result tree, when
the output method is "xml". This is documented in the Output section of
the XSLT 1.0 Recommendation.
- Mike
____________________________________________________________________
Mike J. Brown, software engineer at My XML/XSL resources:
webb.net in Denver, Colorado, USA http://www.skew.org/xml/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list