[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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 "annotation": 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. Noah [1] http://www.w3.org/TR/2004/PER-xmlschema-1-20040318/#Annotation_details -------------------------------------- Noah Mendelsohn IBM Corporation One Rogers Street Cambridge, MA 02142 1-617-693-4036 --------------------------------------
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|