[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: disable-output-escaping (greater than)
disable-output-escaping is defined to work only on text nodes, not on attribute nodes. I would suggest using character maps instead. <xsl:character-map name="pi-delimiters"> <xsl:output-character character="&pi-start;" string="<?"/> <xsl:output-character character="&pi-end;" string="?>"/> </xsl:character-map> <xsl:output use-character-maps="pi-delimiters"/> then <input value="&pi-start;=$tid&pi-end;" name="comment" type="hidden"/> where the entity references pi-start and pi-end are any convenient Unicode private-use characters. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: J. S. Rawat [mailto:jrawat@xxxxxxxxxxxxxx] > Sent: 26 February 2009 07:16 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx; xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: disable-output-escaping (greater than) > > Hi, > Can we get the following output by xsl 2.0 /saxon 9. I have > tried following xsl but not get the result. > > Input > <input value="<?=$tid?>" name="comment" type="hidden" /> > > XSL > <input><xsl:attribute name="value"><?=$tid?<xsl:text > disable-output-escaping="yes">></xsl:text></xsl:attribute></input> > > Thanks > ...JSR
|
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
|