[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: From A to B without ending up at C
Try this: <xsl:template match="/"> <body> <xsl:value-of disable-output-escaping="yes" select="data"/> </body> </xsl:template> Note that this probably will work and is probably the most appropriate solution for this problem (embedded text that's HTML), but it kind of breaks the pure XSLT model. If you were to specify multiply transformations in a sort of pipeline, which you should theoretically always be able to do in XSLT, it's not clear where the output escaping is disabled. Is it converted to "true" markup before the second transformation? Or does it remain text until the document is serialized? This is an example of one of the serialization hooks (in addition to xsl:output, etc.) that make problems like this one simple to solve, but that extend XSLT outside its proper domain, which is to transform one tree into another tree. Hope this has answered your question. Evan Lenz elenz@xxxxxxxxxxx http://www.xyzfind.com XYZFind, the search engine *designed* for XML Download our free beta software: http://www.xyzfind.com/beta -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Ian Sparks Sent: Wednesday, October 18, 2000 1:39 PM To: xsl-list@xxxxxxxxxxxxxxxx Subject: From A to B without ending up at C Can anyone enlighten me as to how I get from A : <data> <CDATA[ <i>Some encoding I want passed on</i> ]]> </data> to B : <body> <i>Some encoding I want passed on</i> </body> without ending up at C: <body> <i;>Some encoding I want passed on<i;> </body> Thanks. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|