R
ruthless
hello.
I've got a problem - can I do any restrictions for my attributes?
I found how to restrict elements and was trying to use them with my
attributes
e.g. <person sex="F"> sex can be anly F and M
i've got sth like this:
<xs:complexType name="person-type">
[...]
<xs:attribute name="sex">
<xs:restriction base="xs:string">
<xsattern value="F|M"/>
</xs:restriction>
</xs:attribute>
</xs:complexType>
when I valid it using: http://www.w3.org/2001/03/webdata/xsv i recieve info:
* The schema(s) used for schema-validation had no errors
so my scheme is correct or not?
I recieve errors while i'm validating xml + xsd, xsd itself is valid(see
above)
xml is correct i have only change my xsd file with the sex attribute
without sex restrictions it was OK
thnx in advance
I've got a problem - can I do any restrictions for my attributes?
I found how to restrict elements and was trying to use them with my
attributes
e.g. <person sex="F"> sex can be anly F and M
i've got sth like this:
<xs:complexType name="person-type">
[...]
<xs:attribute name="sex">
<xs:restriction base="xs:string">
<xsattern value="F|M"/>
</xs:restriction>
</xs:attribute>
</xs:complexType>
when I valid it using: http://www.w3.org/2001/03/webdata/xsv i recieve info:
* The schema(s) used for schema-validation had no errors
so my scheme is correct or not?
I recieve errors while i'm validating xml + xsd, xsd itself is valid(see
above)
xml is correct i have only change my xsd file with the sex attribute
without sex restrictions it was OK
thnx in advance