Re: Entity references in xml output

Subject: Re: Entity references in xml output
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 2 Mar 2000 17:57:12 GMT
> <body2>Blah again and again and &bdquo; &myentity;</body2>

remember that _all_ these entity refernces are resolved by the XML
parser before XSL even sees your document. So there is no way of
saying in XSL that you want to `keep'  &bdquo;.

What you could do is say that you want the unicode character number
1234 (whatever it is) to be always outout as  &bdquo; thus it 
would be output that way however it was input.

This is how the html output method works for the characters that it
outputs as entity references.

So basically you have to extend your xml system and add a non standard
output type that does this.

This is probably a lot of work and you _shouldn't_ have to do it.
_every_ XML system will accept the characters as utf-8 encoded data
so why go to much effort to avoid that?

David


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


Current Thread