David Hedbor wrote:

> Hey.
>
> I'm having a problem outputting non-html tags (ie non-container not
> defined in HTML). When I do <foo/> in the output when generating HTML
> I get <foo></foo>, since <foo> isn't a tag defined in
> XML. <xsl:text><foo/><xsl:text> gives the same result. If I do
> <![CDATA[<foo>]]> I get &lt;foo> - that has to be a bug, yes?

The following should work:
<xsl:text disable-output-escaping="yes"><![CDATA[<foo>]]></xsl:text>

Text nodes are escaped by default. I think Sablotron is compliant in this
point. The ugliness of this solution results from different concepts of XML
and HTML, as mentioned by Andrew.

Petr

> --
> [ Below is a random fortune, which is unrelated to the above message. ]
> Man is the best computer we can put aboard a spacecraft ... and the
> only one that can be mass produced with unskilled labor.
>                 -- Wernher von Braun

--
Petr Cimprich
Ginger Alliance Ltd.
www.gingerall.com


Reply via email to