|
|
 |
perl-xml
Character encodings driving me nuts
by Mike Trotman other posts by this author
Jan 20 2004 7:22PM messages near this date
view in the new Beta List Site
Re: [XSL functions] causing segfaults?
|
RE: LibXML: How do I serialize an attribute like this Attr="{" to file
Hi.
I've never quite got my head around character encodings in XML/XSLT/HTML
processing paths - as I've never had to before.
But now I do and I have hit a problem where I don't know which part of
the process requires correcting / fixing.
I have a process where I use xmlHTTP to send and receive XML data in a
Web Page using Javascript.
I bascially send back an XML data structure - which is processed by the
server - which then returns an XML file.
The server processing involves
1 - reading the transmitted XML data structure - works fine
2 - doing some DOM processing - works fine.
Here's where the problems start - at some pont in the next 3 steps I get
an invalid XML file.
(If I am not using character entities (eg. £) everything works fine.)
The next step tries to output the character entity £
3 - running XSLT on server to produce NEW XML DOM object
4 - outputting HTML/HEAD/BODY wrappers and printing the XML file to the
output stream (using binary mode)
5 - in the browser - receiving the XML file - this fails as the XML
contains illegal characters.
6 - DOM processing it in the browser client
7 - sticking into a new browser window.
Any clues / suggestions as to how to get £ through this process and
onto the Web Page?
Thanks
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|
|
|
 |
|