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

Adding an attribute to an enumerated list

  • To: <xml-dev@l...>
  • Subject: Adding an attribute to an enumerated list
  • From: "Allison Bloodworth" <abloodworth@b...>
  • Date: Wed, 13 Jul 2005 10:13:32 -0700
  • Thread-index: AcWHzjGh/YnL0PahRnSVjt+sNBFDHg==

enumerated list

Hi,

 

I have searched the XML-dev archives as well as the UBL 1.0 specification and CodeList Representation paper and can’t find a good solution to my problem, so I thought I’d ask for any suggestions out there.

I am trying to create a very flexible schema for a public Event for which I’d like people to be able to redefine certain types into enumerated lists when they use the schema. It seems that this means the types must be simpleTypes, since only simpleTypes can be restricted into enumerations. However, I’d also like these types to have an attribute that will allow the user of the schema to indicate what language the content of the element (which will eventually use the type) is in. It seems that this is impossible, as simpleTypes cannot have attributes. UBL 1.0 seems to have a way of attaching this meta-data to an enumerated list/codelist (involving the creation of both a simpleType to hold the enumeration values, and a complexType to hold “supplementary components”—the metadata about the codelist), but it seems too complicated for my purposes as I really only have one attribute I want to use.

 

Doesn’t anyone else out there ever want to create an enumerated list that has an attribute attached to it? Am I missing something simple or is this a difficult problem?

 

Allison Bloodworth

Principal Administrative Analyst

e-Berkeley Program Office

University of California, Berkeley

(415) 377-8243

abloodworth@b...

 


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.