Re: [xsl] Disable Output Esacping Problems

Subject: Re: [xsl] Disable Output Esacping Problems
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 7 Nov 2002 09:42:01 GMT

> <xsl:text disable-output-escaping="yes"><![CDATA[</td></tr>]]></xsl:text>

you _really_ don't want to do that.

> In the first XSLT file I need (or I think I need) to disable output
> esacping because I need to generate non-symmetrical XML tags. 

beware that any use of the word "tag" in an XSLt (or more generally XML)
context is an indication of trouble ahead, XSLT does not generate tags,
it generates nodes of a tree.

Your template should generate whole row (tr) nodes at a time, no attempt
to produce the linear syntax of a start tag in one place and an end tag
somewhere else.

I don't think you gave enough context to show the transformation taht
you actually wanted.

> The disabling of output esacping generates the expected output, but
> the second XSLT file doesn't seem to recognize the <TD> and <TR> tags
> whose output was escaped and fails to apply the appropriate styling to
> these tags. 

That is almost inevitable if you use d-o-e and chain the output of xslt
from one process to another. The "tags" are just text not elements. they
only appear as elements if you linearise teh entire document and then
re-parse it. So it works if xslt outputs a file which is reparsed later
but doesn't work if you pass the in memory tree directly.


This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:

Current Thread