mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-12 09:17:37 +03:00
3b7840cd6c
* 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
74 lines
1.1 KiB
Plaintext
74 lines
1.1 KiB
Plaintext
<!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>
|