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

RE: [HELP] Preserving character references in the resu

Subject: RE: [HELP] Preserving character references in the result tree
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 15 Jan 2004 13:13:42 +0200
character reference help
Hi,

> I'm trying to copy (whith a xsl) a font node from a
> svg file which contains child nodes as follows:
> 
> <glyph unicode="&#xc7;" 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 &#xc7;) 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


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.