[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Trouble with schema-regular expression
- From: Xavier Orri <orri@octalis.com>
- To: xml-dev@lists.xml.org
- Date: Thu, 07 Jun 2001 20:07:59 +0200
Hi,
I want to control in myType that all the strings have a "", but " is a
reserved tag in the xml attributs (pattern value="").
I'm working with a regular expression, in order to create this
restriction. In the regular expression " is not a reserved tag then
there isn't a \".
I've tried several solutions like:
<xsd:simpleType name="myType">
<xsd:restriction base="xsd:string">
<xsd:pattern value=""(.)*""/>
</xsd:restriction>
</xsd:simpleType>
or <xsd:pattern value=""(.)*""/>
or <xsd:pattern value="\"(.)*\""/>
or <xsd:pattern value="\p{#34}(.)*\p{#34}"/>
or <xsd:pattern value=""(.)*""/>
or <xsd:pattern value="\p(")(.)*\p(")"/>
But they are not valid or says all the time ok.
Please, comments are welcome. Thanks
Xavier Orri