Subject: RE: [xsl] Is there a way to output & apos ; instead of & # 34 ; in XML? From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Wed, 14 Mar 2001 10:26:59 -0000 |
> But if the input has > ' > or > " > , the output changes them to > ' > and > " > , which is not good. I'd like to preserve what was in the > input. No, there's no way to preserve what's in the input, when the two representations are equivalent in the XPath data model. Just as you can't preserve the spaces around an equals sign in attribute="value". Since all XML applications shold treat the two as equivalent, the theory is that these cosmetic variations do not need to be preserved. Saxon gives you some control over the representation of non-ASCII characters in the output (see the saxon:character-representation attribute) but that won't help you in this case. You can always write your own serializer, but even that won't tell you what the input representation was. Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Is there a way to output & ap, Allen Chang | Thread | [xsl] Resend: Is there a way ..., Allen Chang |
Template repository (Was: Re: [xsl], Jeni Tennison | Date | RE: [xsl] How to specify a path to , Michael Kay |
Month |