XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Understanding W3C Schema Complex Types
Subject: XSD enumarations
Date: 2001-11-14 05:27:13
From: Harry Hirsch

Hi folks,
i want to give a list of enumerations to an attribute, but also keep the opportunity to let other values than in xsd:enumeration be valid ??

Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • XSD enumarations
    2005-07-19 01:59:30 JAPISoft [Reply]

    Just use the union like that :


    <simpleType>
    <union>
    <restriction base="xs:string">
    <enumeration.../>
    </restriction>
    <simpleType>
    ...
    </simpleType>
    </union>
    </simpleType>


    Best regards,


    A.Brillant
    EditiX - XML Editor and XSLT Debugger
    http://www.editix.com

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938