[Expat-bugs] [ expat-Bugs-1465456 ] PI targets with ":" broken by namespace support

SourceForge.net noreply at sourceforge.net
Thu Apr 6 04:03:42 CEST 2006


Bugs item #1465456, was opened at 2006-04-05 19:03
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1465456&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: PI targets with ":" broken by namespace support

Initial Comment:
Processing instruction targets are allowed to contain ':' by the XML 1.0 specification, and in fact such processing instructions are used e.g. for XML Architectural Forms (see http://www.hytime.org/ for more info on those.)

Expat versions 1.95.8 and 2.0.0 fail to parse such processing instructions when namespace support is enabled; they consider the ':' to be an invalid character.

For an example in the wild, see the W3C's XHTML Basic 1.0 architectural forms module:

http://www.w3.org/TR/xhtml-basic/xhtml-arch-1.mod

Parsing fails at the first colon in the IS10744:arch processing instruction when namespace support is enabled.

$ cat foo.xml
<?pi:target?><foo/>
$ xmlwf foo.xml # works OK
$ xmlwf -n foo.xml # BUG: fails 
foo.xml:1:4: not well-formed (invalid token)

With the attaches patch this file is parsed correctly.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1465456&group_id=10127


More information about the Expat-bugs mailing list