OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble with schema-regular expression

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;"/>

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