mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-24 21:33:51 +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
41 lines
1.1 KiB
XML
41 lines
1.1 KiB
XML
<?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>
|