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

Re: From Pox to Pojo

  • From: noah_mendelsohn@u...
  • To: "Andrew Welch" <andrew.j.welch@g...>
  • Date: Thu, 11 Oct 2007 12:53:09 -0400

Re:  From Pox to Pojo
Andrew Welch writes:

> <xs:annotation>
>         <xs:documentation>Not Applicable</xs:documentation>
> My ideal enum is something like:
> Item.Not_Applicable

Obviously you're free to seek any interface that meets your needs, but I'd 
point out that the schema recommendation [1] gives you two kinds of 

1) <xs:documentation> which "is intended for human consumption"

2) <xs:appinfo> which is intended "for automatic processing"

So, while it's perfectly reasonable to want to see information from 
<xs:documentation> in some API for certain purposes, it's probable that 
<xs:appinfo> is closer to what you would use if you intend schema 
information to be provided to your application.  Of course, that 
immediately leaves you with a question analagous to your original one, 
which is whether your databinding tool provides access to that either. 
FWIW, additional attributes on schema document markup are another source 
of appinfo-like information.


[1] http://www.w3.org/TR/2004/PER-xmlschema-1-20040318/#Annotation_details

Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.
First Name
Last Name
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.