WXS: whiteSpace

G

Gustaf Liljegren

I've got a few questions about the whiteSpace facet.

1. It seem to differ from the other factes, because it *modifies* the
value instead of checking it. Is this correct?

2. Is this change kept after validation? Will a schema parser report the
value according to the whiteSpace facet? Or is the modified value only
for validation purposes?

3. Does whiteSpace have priority over the other facets? That is, is this
element correct

<a>1234</a>

according to this simple type:

<xsd:simpleType name="something">
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
<xsd:length value="4"/>
</xsd:restriction>
</xsd:simpleType>

Thanks,

Gustaf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top