RE: [xsl] Generating numeric character references

Subject: RE: [xsl] Generating numeric character references
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Thu, 16 Jan 2003 10:24:41 -0000

> Hi,
> 
> This won't work.
> 
> If you took the results of this transform and gave them to SAX
> ContentHandler you'd get a 'characters' call with the string
> "&#173;", not with the single character represented by U+00AD.
> 
> Also, if you re-serialised the result, you end up back where
> you started: & a m p ; # 1 7 3 ;
> 
> Dan.

ooops, engage brain.  Of course you will need use d-o-e on the text nodes to ensure your newly form &#173; text string isn't serialized back out to &amp;#173;... (which is what wendell was saying in the first place)

cheers
andrew

 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003
 

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


Current Thread