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

How to define list of types in xsd

From: Meir Yanovich <meiry@fts-soft.com>
Date: Tue, 4 Apr 2006 14:16:14 +0200
Message-ID: <7FF923B77C9A3D46BD808F3BD91473AC016E909C@ftsmail.fts-soft.com>
To: <xmlschema-dev@w3.org>
define list in xsd

How to define list of types in xsd
Hello
I have problem to define list of types defined in xml and translate it
to xsd 
Example I have : 

<book>
    <attribute name="ID1" type="l">444555666</attribute>
    <attribute name=" ID2" type="d">99999</attribute>
    <attribute name=" ID3" type="X">blah</attribute>
>/book<
>notebook<
    <attribute name="cat1" type="l">444555666</attribute>
    <attribute name=" cat2" type="d">99999</attribute>
    <attribute name=" cat3" type="X">blah</attribute> </notebook>

now as you see all elements are using types that are have to be
represents in the xsd , the types are pre defined and many element are
using it 
( in this example the book and notebook attribute) what is the right way
to represent it in xsd? 

Thanks allot
Received on Tuesday, 4 April 2006 12:38:12 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.