V
VanOrton
Hi all,
When XercesDOMParser parses an XML document with a Schema instance, by
default it
adds all missing default and fixed attributes. I have the impression
though that it misses the
namespace prefices... I'm using Xerces 2.5.0.
Here's a document parsed by Xerces:
<?xml version="1.0" encoding="UTF-8"?>
<mads xmlns="http://www.loc.gov/mads/"
xmlns:mods="http://www.loc.gov/mods/v3"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.loc.gov/mads/ mads.xsd">
<authority type="simple"/>
</mads>
The "type" attribute in element "authority" was automatically added by
the parser...
But "type" is defined in xlink (namespace
"http://www.w3.org/1999/xlink"). Shouldn't
Xerces have added its prefix in front?? (xlink:type="simple") ??? I
think there is a
problem here... Anybody experienced it? Or anybody can help?
"mads" schema has: attributeFormDefault="unqualified"
You can find the above Schemas at:
http://www.loc.gov/mads/ : http://www.loc.gov/standards/mads/mads.xsd
http://www.loc.gov/mods/v3 :
http://www.loc.gov/standards/mods/v3/mods-3-0.xsd
http://www.w3.org/1999/xlink :
http://www.loc.gov/standards/mods/xlink.xsd
Thank you all in advance...
Nicolas
When XercesDOMParser parses an XML document with a Schema instance, by
default it
adds all missing default and fixed attributes. I have the impression
though that it misses the
namespace prefices... I'm using Xerces 2.5.0.
Here's a document parsed by Xerces:
<?xml version="1.0" encoding="UTF-8"?>
<mads xmlns="http://www.loc.gov/mads/"
xmlns:mods="http://www.loc.gov/mods/v3"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.loc.gov/mads/ mads.xsd">
<authority type="simple"/>
</mads>
The "type" attribute in element "authority" was automatically added by
the parser...
But "type" is defined in xlink (namespace
"http://www.w3.org/1999/xlink"). Shouldn't
Xerces have added its prefix in front?? (xlink:type="simple") ??? I
think there is a
problem here... Anybody experienced it? Or anybody can help?
"mads" schema has: attributeFormDefault="unqualified"
You can find the above Schemas at:
http://www.loc.gov/mads/ : http://www.loc.gov/standards/mads/mads.xsd
http://www.loc.gov/mods/v3 :
http://www.loc.gov/standards/mods/v3/mods-3-0.xsd
http://www.w3.org/1999/xlink :
http://www.loc.gov/standards/mods/xlink.xsd
Thank you all in advance...
Nicolas