Subject: RE: disable-output-escaping (greater than)
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 26 Feb 2009 08:30:05 -0000
|
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
|