xsl-list
[Top] [All Lists]

Re: Xslt 2.0 disable-output-escaping attributes

2004-01-26 11:31:35

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 <.

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
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:
http://www.star.net.uk
________________________________________________________________________

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



<Prev in Thread] Current Thread [Next in Thread>