Re: [xml] ' -> ' transform



On Thu, Apr 19, 2001 at 07:52:47PM +0900, Yuuichi Teranishi wrote:
Hi, 

In the file entities.c from the line 661 (On latest CVS),
there are codes like:

#if 0
        } else if ((*cur == '\'') && (!html)) {
            *out++ = '&';
            *out++ = 'a';
            *out++ = 'p';
            *out++ = 'o';
            *out++ = 's';
            *out++ = ';';
#endif

Why these codes are disabled by '#if 0'?
I think it is unexpected that &apos is dumped as '
while &quot is dumped as ".

  http://www.w3.org/TR/REC-xml
  2.4 Character Data and Markup

  -------------
  To allow attribute values to contain both single and double quotes,
  the apostrophe or single-quote character (') may be represented as
  "'", and the double-quote character (") as """.
  -------------

It's a 'may' not a 'must'. I used to do it and I don't anymore.
There is probably a good reason but I can't remember why.

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]