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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
<!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>