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
Re: Keeping numeric entities intact when parsing and serializing?
by Aristotle Pagaltzis other posts by this author
Oct 10 2009 3:32AM messages near this date
view in the new Beta List Site
Re: Keeping numeric entities intact when parsing and serializing? | Re: Keeping numeric entities intact when parsing and serializing?
& XSLT * Nicolas Mendoza <mendoza@[...].no>  [2009-10-10 12:20]:
>  So, given that we accept this, why is &amp; not converted to "'"?

You mean `&`.

It is, when parsing. But it has to be escaped for the XML to
be valid, so when generating output, it is expressed as `&amp;`.
If you write it `&#38;` in the input (which means the same `&`
character), you’ll see that the output still comes out `&amp;`
and not `&#38;`. Because it’s the same thing.

You still haven’t told us why you would want this. Are you using
software that processes XML documents, but as text blobs rather
than as XML documents? Or do you want it for legibility of the
output?

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/> 
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Nicolas Mendoza
Mirod
Jenda Krynicky
Nicolas Mendoza
Aristotle Pagaltzis
Nicolas Mendoza
Aristotle Pagaltzis
Petr Pajas
Nicolas Mendoza
Petr Pajas
Nicolas Mendoza
Aristotle Pagaltzis
Nicolas Mendoza
Nicolas Mendoza
Petr Pajas

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