Subject: Re: [xsl] Conditional Transformition for CDATA node From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sun, 09 Dec 2007 13:34:45 +0900 |
Can you write a match for an element containing CDATA?
The thought is: raw web content in a CDATA element, and some web content will be well formed. So I might have something like:
<root> <data> <div>foo bar<br/>foo bar</div><!-- well formed --> </data> <data><![DATA[ <p>not so foo<br>barf<!-- not well formed --> ]> </data> </root>
In one case, I'd simply xsl:value-of the data element, and in the other case, I'd write an identity transformation for it.
-- Comprehensive in-depth XSLT2/XSL-FO1.1 classes: Austin TX,Jan-2008 World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Conditional Transformition fo, Karl Stubsjoen | Thread | Re: [xsl] Conditional Transformitio, Karl Stubsjoen |
[xsl] Conditional Transformition fo, Karl Stubsjoen | Date | Re: [xsl] Conditional Transformitio, Karl Stubsjoen |
Month |