ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved