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

RE: [xsl] [HELP] Preserving character references in the result tree

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


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


Jarno - Front Line Assembly: Testimony

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

Current Thread