Altova Mailing List Archives

RE: AS-IS Output in XSL

From: zuzmi@----------- (-. ----)
Date: 6/7/2000 4:27:00 PM
>From XSL file's point of view (which I am assuming is being parsed by DOM or
SAX parser), anything between angle brackets is "considered" a tag and needs
a closing tag, or a slash at the end. The reason I used that terminology is
just to make the question clear, and it worked :-). Anyways, here is the
solution that I found after some experimentation with Xalan-J for the
benefit of others.

<xsl:text disable-output-escaping="yes">
&lt;!DOCTYPE blah blah blah&gt;


> > I am trying to do an XLS Transformation and in the output
> > file I want a non-closing tag to appear as follows:
> >
> > <!DOCTYPE something something_else_but_not_an_attribute blah blah>
> >
> Firstly, your terminology is way out, there is no such thing as a
> "non-closing tag" and you seem to be confused between an element start tag
> and a document type declaration. The only similarity is that both
> use angle
> brackets as delimiters.
> Secondly, there is no clean way of outputting a document type declaration
> from an XSLT stylesheet. There is a dirty way of doing it, use
> <xsl:text disable-output-escaping="yes">
> <[CDATA[<!DOCTYPE thing thing>]]>
> </xsl:text>
> Mike Kay
>  XSL-List info and archive:

 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.