[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

question about regex and schema

From: Andreas Peter <info@minimag.de>
Date: Fri, 29 Feb 2008 22:00:34 +0100
Message-ID: <20080229220034.3t4u7mkiggs08sws@ssl.lunabox.de>
To: xmlschema-dev@w3.org
question about regex and schema

Hello list users,

I have the following complexType:

     <xs:complexType name="speccharType">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
             <xs:element name="greek">
                 <xs:simpleType>
                     <xs:restriction base="xs:string">
                         <xs:enumeration value="\p{Greek}"/>
                     </xs:restriction>
                 </xs:simpleType>
             </xs:element>
         </xs:choice>
     </xs:complexType>

The aim should be to allow only greek characters inside an element  
with the speccharType. But when I am going to test it inside an  
instance document I only have the possibility to use the value  
"\p{Greek}" instead of greek characters. I think the regex is not  
suitable for my purpose. Unfortunately I am not very familiar with  
regex at the moment.

I hope my question is clear to the list users :-)

Thanks so much,
Andreas
Received on Friday, 29 February 2008 21:01:04 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.