From: Sam S. <sd...@gn...> - 2000-06-06 17:19:32
|
John Wiseman wrote: > The first one is pretty minor. xml.lisp does not handle processing > instructions. For example, > <http://www.w3.org/TR/1998/REC-xml-19980210#sec-pi> says "XML > documents may, and should, begin with an XML declaration which > specifies the version of XML being used" and gives the following > example: > > <?xml version="1.0"?> > <greeting>Hello, world!</greeting> > > This example causes an assertion to fail in xml.lisp. this example works just fine for me: (with-xml-input (v (make-string-input-stream "<?xml version=\"1.0\"?> <greeting>Hello, world!</greeting> <tag arg=\"val\">z</tag>")) (list (read v nil nil) (read v nil nil) (read v nil nil))) (#<xml-obj xml [version="1.0"] 0 objects 0/25 chars #x19D0F579> #<xml-obj greeting [] 1 object 13/34 chars #x19D0F5C1> #<xml-obj tag [arg="val"] 1 object 1/22 chars #x19D13A59>) > The next problem is a significant one: xml.lisp does not handle tag > names that contain colons. For example, the following is a perfectly > well formed XML document that causes xml.lisp to error out: > > <xsl:value-of select="stylesheet" /> this is a problem. can this "name-space:tag-name" thing appear only as a tag name or as an attribute name too? |