[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: entity output

Subject: Re: entity output
From: Daniel Veillard <daniel@xxxxxxxxxxxx>
Date: Fri, 13 Jun 2003 12:05:28 +0200
xml quot
On Fri, Jun 13, 2003 at 09:34:00AM +0200, Vincent Lefevre wrote:
> On Thu, Jun 12, 2003 at 15:16:19 -0400, Passin, Tom wrote:
> > No standard serilaizer is likely to give you entities when it is not
> > necessary to do escaping.
> 
> except xsltproc (libxslt), which *always* gives &quot; instead of ". :(
> Of course, this is not incorrect, but just annoying (in particular, it
> makes the output XML file longer and more difficult to read).

  Hum, first time I get complaints about this. Whining on xsl-list ain't
the best way to get libxml2/libxslt fixes ... 
  Anyway it's easy enough it's fixed in CVS and will be in the next release:

paphio:~/XML -> cat /tmp/tst.xml
<doc attr="'bar'" attr2='"foo"'> a ' and a " . </doc>

  old behaviour

paphio:~/XML -> /usr/bin/xmllint /tmp/tst.xml
<?xml version="1.0"?>
<doc attr="'bar'" attr2="&quot;foo&quot;"> a ' and a &quot; . </doc>

  new behaviour where &quot; is not generated except for attributes
content

paphio:~/XML -> ./xmllint /tmp/tst.xml
<?xml version="1.0"?>
<doc attr="'bar'" attr2="&quot;foo&quot;"> a ' and a " . </doc>
paphio:~/XML ->

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | 

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.