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(_at_)aptaracorp(_dot_)com]
Sent: 26 February 2009 07:16
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com;
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--