O
Oli Filth
Hello
I'm fairly new to XML, and currently working on an XSD schema. I'm
having a problem when validating against it, specifically when it comes
to using xs:token.
If a "details" element is declared as:
<element name="details" type="xs:token" maxOccurs="unbounded" />
then is the 2nd line of the following XML markup valid?
<details>Some text</details>
<details> Some text </details>
From reading various things on the net, I was of the understanding that
the 2nd line *should* be valid (i.e. the implied whiteSpace="collapse"
facet is only relevant when the XML is processed by an application).
However, the validator at
http://apps.gotdotnet.com/xmltools/xsdvalidator/ disagrees with me, saying:
"the 'details' element has an invalid value according to its data type."
Is this correct?
I'm fairly new to XML, and currently working on an XSD schema. I'm
having a problem when validating against it, specifically when it comes
to using xs:token.
If a "details" element is declared as:
<element name="details" type="xs:token" maxOccurs="unbounded" />
then is the 2nd line of the following XML markup valid?
<details>Some text</details>
<details> Some text </details>
From reading various things on the net, I was of the understanding that
the 2nd line *should* be valid (i.e. the implied whiteSpace="collapse"
facet is only relevant when the XML is processed by an application).
However, the validator at
http://apps.gotdotnet.com/xmltools/xsdvalidator/ disagrees with me, saying:
"the 'details' element has an invalid value according to its data type."
Is this correct?