Branch
Hash :
3b7840cd
Author :
Date :
2003-09-11T23:42:01
adding namespace checkings while making sure they still parse as * parser.c parserInternals.c tree.c include/libxml/parser.h include/libxml/xmlerror.h: adding namespace checkings while making sure they still parse as wellformed documents. Add an nsWellFormed status report to the context, and provide new appropriate error codes. * Makefile.am result/namespaces/* test/namespaces/*: add specific regression testing for the new namespace support * test/att5 result/noent/att5 result/att5 result/att5.sax: add more coverage for the attribute parsing and normalization code. Daniel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
<?xml version="1.0"?>
<!DOCTYPE doc [
<!ATTLIST normId attr NMTOKENS #IMPLIED>
]>
<doc>
<!-- no normalization -->
<norm attr=" "/>
<norm attr=" foo bar "/>
<norm attr=" foobar"/>
<norm attr=" foo bar "/>
<norm attr="foobar "/>
<norm attr=" & "/>
<norm attr=" foo&bar "/>
<norm attr=" foobar&"/>
<norm attr="&foo bar "/>
<norm attr="foobar &"/>
<norm attr=" < "/>
<norm attr=" foo<bar "/>
<norm attr=" foobar<"/>
<norm attr="<foo bar "/>
<norm attr="foobar <"/>
<norm attr=" 	 "/>
<!-- normalization -->
<normId attr=""/>
<normId attr="foo bar"/>
<normId attr="foobar"/>
<normId attr="foo bar"/>
<normId attr="foobar"/>
<normId attr="&"/>
<normId attr="foo&bar"/>
<normId attr="foobar&"/>
<normId attr="&foo bar"/>
<normId attr="foobar &"/>
<normId attr="<"/>
<normId attr="foo<bar"/>
<normId attr="foobar<"/>
<normId attr="<foo bar"/>
<normId attr="foobar <"/>
<normId attr=" 	"/> <!-- PBM serializing back -->
</doc>