Re: [xsl] pesky & and fop

Subject: Re: [xsl] pesky & and fop
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 9 Oct 2002 18:13:47 +0100
>  String value = "&#8226";

that makes a string of length 6. In the language you are using it
appears as  "&#8226"; but as XML it would appear as  "&amp;#8226";
which is why you get the output you state.

You want instead to have a string of length 1 which has that character.
Depending on the programming language you are using you might be able to
use direct utf8 or utf16 encoding of the character or the language might
have some escape mechanism such as \u8226. The escape mechanism probably
isn't &#8226; unless the language (like xslt) is itself an XMl format,
which appears not to be the case in your example.

> Unfortunately the & in the xml node gets further escaped in the 
> transformation to 
No, not in the transformation, you would see the same if you just
linearised your input dom as XML.


This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:

Current Thread