I'm trying to understand the use of patterns in XSD. Hows does '+' in a pattern for a restriction work in XSD?
After some research, I found out that I can use restrictions with patterns. I do understand that the "+" means 1 or more. But will it also apply in this case?
<xsd:simpleType name="typeNumber">
<xsd:restriction base="xsd:ID">
<xsd:pattern value="nr[0-9]+"/>
</xsd:restriction>
</xsd:simpleType>
Will, for example, the value nr12345
be valid?
Furthermore, I would like to know how it would be possible to make the acceptable value between nr01
and nr10
.