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

RE: Non-validating XSL processors

Subject: RE: Non-validating XSL processors
From: "Sebastian Rahtz" <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 24 Sep 2000 23:42:15 +0100 (BST)
matthew rahtz
Matthew Bentley writes:
 > >But the simple way to solve the problem (assuming that it's a real problem
 > >and not imagined) is to preprocess the source XML to replace the ampersands
 > >with something else, and then postprocess the output to put them back
 > again.
 > 
 > Thanks Mike - this is actually what I've been doing - I translate from '&'
 > to '$!$' - I was just wondering whether theres an alternative-
 > Matt

put 

<!ENTITY foo "<Entity name='foo'>">

in the XML (ie redefine them) and then

<xsl:template match="Entity">
 <xsl:value-of  disable-output-escaping="yes" select="'&amp;"/>
 <xsl:value-of select="@name"/>
 <xsl:value-of  disable-output-escaping="yes" select=";"/>
</xsl:template>

in your XSL.

Dirty, isnt it.

Sebastian


 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.