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

Applying enumeration-facet on list type

From: Eran Balter <E.Balter@F5.com>
Date: Thu, 7 Feb 2008 01:09:41 -0800
Message-ID: <AB313AF70F994447A667F4D942CA655714B763EE@excheight.olympus.f5net.com>
To: <xmlschema-dev@w3.org>
Applying enumeration-facet on list type
Hi,

 

When defining an enumeration-facet on a list, should we consider the
lexical-space or value-space of the value? 

Is the following example legal?

 

Instance: 

<root MyAtt="1.0 2.0"/> 

 

Schema:

<?xml version="1.0" ?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

            <xsd:element name="root">

                <xsd:complexType>

                        <xsd:attribute name="MyAtt">

                                    <xsd:simpleType>

                                    <xsd:restriction>

                                                <xsd:simpleType>

                                                   <xsd:list
itemType="xsd:decimal" />

                                                </xsd:simpleType>

                                    <xsd:enumeration value='1.0 2'/> 

                                    </xsd:restriction>

                                    </xsd:simpleType>

                        </xsd:attribute>

                </xsd:complexType>

            </xsd:element>

</xsd:schema>
Received on Thursday, 7 February 2008 13:22:53 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.