|QName validation [message #545223]
||Wed, 07 July 2010 08:59
| Tsvetan Stoyanov
Registered: July 2009
I noticed that the literal values of QName attributes are not validated.
Here's an example:
In one schema:
<simpleType name="My;SimpleType" .../>
In another schema:
<element name="e1" type="sch1:My;SimpleType"/>
Notice that the value of the name and type attributes is not correct - it contains ;.
As expected the validation of the first schema fails because of the incorrect value, but the second schema validation is OK - even if the type attribute value is incorrect the type itself is resolved.
Is this an expected behavior? Shouldn't be the literal attribute value the one that must be validated first?
[Updated on: Wed, 07 July 2010 09:00]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02283 seconds