[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Non-validating XSL processors
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="'&"/> <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
|
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
|