[Home] [By Thread] [By Date] [Recent Entries]

  • From: Xavier Orri <orri@o...>
  • To: xml-dev@l...
  • 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="&#34;(.)*&#34;"/>
        </xsd:restriction>
</xsd:simpleType>


or	<xsd:pattern value=""(.)*""/>
or	<xsd:pattern value="\"(.)*\""/>
or	<xsd:pattern value="\p{#34}(.)*\p{#34}"/> 
or	<xsd:pattern value="&quot;(.)*&quot;"/> 
or	<xsd:pattern value="\p(")(.)*\p(")"/>

But they are not valid or says all the time ok.

Please, comments are welcome. Thanks
Xavier Orri

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member