[cxml-devel] CDATA doesn't preserve whitespace

Sunil Mishra smishra at sfmishras.com
Sat Sep 16 01:05:20 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've noticed the following in ACL7 on the attached document:

CL-USER(115): (cxml:parse-file "C:\\graph.xml" (rune-dom:make-dom-builder))
#<RUNE-DOM::DOCUMENT @ #x212c5a82>
CL-USER(116): (dom:map-document (cxml:make-namespace-normalizer
(cxml:make-octet-stream-sink *standard-output*)) *)
<svg xmlns="http://www.w3.org/2000/svg">
  <script
type="text/css">
    
    
    
  </script>
</svg>
#<MULTIVALENT stream socket connected from localhost/3813 to
  localhost/3817 @ #x205003d2>

Now, it appears that this doesn't seem to be a problem for the
javascript processor in firefox. It still seems to process lines and
quotes and so on that have been thus escaped correctly. The XML 1.1
proposal in its description of CDATA states that the only markup that
will be recognized by the XML processor is the CDATA end:

``Within a CDATA section, only the CDEnd string is recognized as markup,
so that left angle brackets and ampersands may occur in their literal
form; they need not (and cannot) be escaped using "<" and "&".
CDATA sections cannot nest.''

Can cxml please correctly follow this requirement?

Thanks,

Sunil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFC03QjRnqWMAEf1cRAoCLAKC0ZSIqVYeOHEimdQwdLTNsCgdrJgCdECue
DAdGZCA+vOYOBDBcI5FRH8g=
=5NkM
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graph.xml
Type: text/xml
Size: 155 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cxml-devel/attachments/20060915/bdd85118/attachment.xml>


More information about the cxml-devel mailing list