W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2008

"mixing" simpleType and complexType

From: Andreas Peter <info@minimag.de>
Date: Fri, 25 Jul 2008 21:12:41 +0200
Message-ID: <488A25A9.4040004@minimag.de>
To: XML Schema List <xmlschema-dev@w3.org>

Hello list-users,

I need to "mix" simpleTypes and complexTypes. To be more precisely an 

As result I need the following


where as the "Ω" should be from the unicode block "greek" and the "2" 
from the unicode block "superscriptsandsubscripts". The problem is that 
I defined a simpleType for both and I do not know how to nest them in an 
element "peculiar"? The "Ω" and the "2" should be tested if they are 
part of the unicode blocks.

    <xs:simpleType name="greekType">
        <xs:restriction base="xs:string">
            <xs:pattern value="\p{IsGreek}+"/>

    <xs:simpleType name="subscriptType">
        <xs:restriction base="xs:string">
            <xs:pattern value="\p{IsSuperscriptsandSubscripts}+"/>
    <xs:element name="peculiar">

I hope that the problem was described clearly :-)
Any hints are welcome. Thanks so much,

Received on Friday, 25 July 2008 19:13:25 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:14 UTC