[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

Subject: RE: From A to B without ending up at C
From: "Evan Lenz" <elenz@xxxxxxxxxxx>
Date: Wed, 18 Oct 2000 14:58:50 -0700
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>
  &lt;i;&gt;Some encoding I want passed on&lt;i;&gt;
</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


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.