[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: [HELP] Preserving character references in the resu
Hi, > I'm trying to copy (whith a xsl) a font node from a > svg file which contains child nodes as follows: > > <glyph unicode="Ç" glyph-name="Ccedilla" > horiz-adv-x="750" d="M250 > -254H-7V-122H243V-4H118V122H-7V754H118V879H500V754H625V622H493 > V747H125V129H493V254H625V122H500V-4H375V-129H250V-254Z" > /> > > The unicode attribute value of my result tree is not a > character reference (in this case Ç) anymore. > > So my question is: > How can i preserve the characters references in the > result tree? You can't-the result tree doesn't contain XML character references, just text nodes. You can ask XSLT engine to serialize the result tree using an encoding that cannot represent the character LATIN CAPITAL LETTER C WITH CEDILLA and the character will be output as a character reference; ASCII in this case, if your engine support it. Cheers, Jarno - Front Line Assembly: Testimony XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|