![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: overriding a datatype of an attribute >Thread Next - Not loading XML to HTML page "mixing" simpleType and complexTypeTo: XML Schema List <xmlschema-dev@--.---> Date: 7/25/2008 11:13:00 PM
Hello list-users,
I need to "mix" simpleTypes and complexTypes. To be more precisely an
example:
As result I need the following
<peculiar>=CE=A9<subscript>2</subscript></peculiar>
where as the "=CE=A9" 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 "=CE=A9" 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:restriction>
</xs:simpleType>
<xs:simpleType name="subscriptType">
<xs:restriction base="xs:string">
<xs:pattern value="\p{IsSuperscriptsandSubscripts}+"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="peculiar">
<xs:complexType>
???
</xs:complexType>
</xs:element>
I hope that the problem was described clearly :-)
Any hints are welcome. Thanks so much,
Andreas
From mike@s... Fri Jul 25 20:05:13 2008
Received: from maggie.w3.org ([193.51.2 | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
