[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Xslt 2.0 disable-output-escaping attributes

Subject: Re: [xsl] Xslt 2.0 disable-output-escaping attributes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 26 Jan 2004 18:31:35 GMT

> I would have expected the left angle bracket to still be an entity - is this correct?  

No the character map forces it to be exactly the string specified
without going through XML escaping, In your case the string specified is
the single character "<" (The fact that you entered that character using
the entity &lt; is irrelevant and in fact the xslt engine doesn't see
that entity in the input, it will have been expanded by the parser.

 <xsl:output-character character=">" string="&gt;"/>
 <xsl:output-character character="&gt;" string="&gt;"/>
 <xsl:output-character character=">" string=">"/>

all produce the same XML parse in the Xpath data model, so all form the
same input (and so, the same output) in xslt.

So you get out an unescaped <.



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread