[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Disable Output Esacping Problems

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

> <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.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.