[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: disable-output-escaping (greater than)

Subject: RE: disable-output-escaping (greater than)
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 26 Feb 2009 08:30:05 -0000
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="&lt;?"/>
  <xsl:output-character character="&pi-end;" string="?&gt;"/>
</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">&lt;?=$tid?<xsl:text 
> disable-output-escaping="yes">&#62;</xsl:text></xsl:attribute></input>
> 
> Thanks
> ...JSR

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.