RE: Help Me Do Something Bad
I thought so, but I disabling in the wrong place, silly me, thanks again everyone for the meaty and quick responses. -----Original Message----- From: Michael Kay [mailto:mike@xxxxxxxxxxxx] Sent: Thursday, April 07, 2005 8:55 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: Help Me Do Something Bad Think of it this way: parsing the data turns angle brackets into nodes, and < into angle brackets. You can think of this as unescaping. Serializing the data turns nodes into angle brackets, and angle brackets into < You can think of this as escaping. In your transformation you want to turn < into angle brackets which means you need to unescape once more often than you escape. This is what disable-output-escaping does. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: kent [mailto:kent@xxxxxxxxxxxxxxxxx] > Sent: 07 April 2005 19:16 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Help Me Do Something Bad > > I know escaped content in xml is bad, but I've got some and I wanna do > something with it. Pleas help?! > > I have markup like this: > <description>Platform Computing's <a > href="http://www.platform.com/newsevents/pressreleases/preleas > e.asp?id=82" > > announcement </a> However, <a > href="http://www.gridsystems.com" >...</description> > > I want to transform it to html. Like this, > > <xsl:for-each select="description" > > <xsl:apply-templates /> > </xsl:for-each> > > I do not believe disable-output-escaping is the solution cuz > it has already > been disabled. So I am stumped how do I de-escape this? Any help would > really be appreciated. > > Thanks > > kent
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