W
wooks
I apologise if this has been asked before, it is a bit hard to search
for.
I have an xml schema which defines the elements in the namespace
"urn:dummy". The schema does not contain any attribute
definitions/declarations.
The instance XML however gets transformed at runtime with the result
that a label attribute is added to each element.
An example of my instance XML is below
<?xml version="1.0"?>
<ROOTSTUB xmlns="urn:dummy">
<a label="Name">login</a>
<b label="derivation">restriction</b>
<c label="XML Data Type">NCName</c>
<d label="Minimum Field Length">6</d>
</ROOTSTUB>
Post transformation, errors are being thrown up because the validating
XML schema has no attribute definitions.
My question is given that the label attributes are not in any
namespace why are they being validated by the XML schema?
for.
I have an xml schema which defines the elements in the namespace
"urn:dummy". The schema does not contain any attribute
definitions/declarations.
The instance XML however gets transformed at runtime with the result
that a label attribute is added to each element.
An example of my instance XML is below
<?xml version="1.0"?>
<ROOTSTUB xmlns="urn:dummy">
<a label="Name">login</a>
<b label="derivation">restriction</b>
<c label="XML Data Type">NCName</c>
<d label="Minimum Field Length">6</d>
</ROOTSTUB>
Post transformation, errors are being thrown up because the validating
XML schema has no attribute definitions.
My question is given that the label attributes are not in any
namespace why are they being validated by the XML schema?