- From: Pete Cordell <petexmldev@tech-know-ware.com>
- Date: Thu, 7 Sep 2006 09:34:57 +0100
- To: <paul.downey@bt.com>, <public-xsd-databinding@w3.org>
----- Original Message From: <paul.downey@xxxx> Hi Paul, > The concern is when global attributes are defined but not referenced, > e.g. for xml:id and xml:lang, etc. I took the liberty of sending a message to the xsd-dev list and it seems to be useful such items would need to be referenced in the collection, either explicitly by name (using ref=), or by using xs:anyAttribute. It seems that our tool doesn't handle the latter case correctly for processContent='strict' and 'lax'. We just bunch any unknown attributes into a name/value style collection without additional validation. > Something you might consider contributing to .. i plan to put some > instructions together on how to contribute a toolkit test report > within the next week. I'll see if I can make follow what to do. The Schematron looks quite daunting at the moment! Pete. -- ============================================= Pete Cordell Tech-Know-Ware Ltd for XML to C++ data binding visit http://www.tech-know-ware.com/lmx (or http://www.xml2cpp.com) ============================================= -----Original Message----- From: public-xsd-databinding-request@w3.org on behalf of Pete Cordell Sent: Tue 9/5/2006 6:15 PM To: Databinding WG Subject: Re: ISSUE-69: Global Attributes Hi Paul, I think my understanding of global attributes is different to your. I may well be guilty of reading the spec how I would like it to be rather than what it really is! As you know, the spec says "...{global} identifies attribute declarations available for use in complex type definitions throughout the schema. ..." My reading of that is that such global attributes are available for use, but not actually used unless there is an associated attribute use in the complex type definition. Putting my understanding another way, to have an attribute in a complex type you need an attribute declaration and an attribute use. The global attribute is just an attribute declaration. You need an attribute use (i.e. an xs:attribute statement that allows a use attribute) in the complex type to actually use a global declaration. On the other hand, local attribute definitions with either type= or xs:simpleType body are both an attribute use and an attribute declaration wrapped up in one! I must admit that this has been perplexing me for a while, but my forensic analysis of the spec brings me to this conclusion! Cheers, Pete. -- ============================================= Pete Cordell Tech-Know-Ware Ltd for XML to C++ data binding visit http://www.tech-know-ware.com/lmx (or http://www.xml2cpp.com) ============================================= ----- Original Message ----- From: "Databinding Issue Tracker" <dean+cgi@w3.org> To: <public-xsd-databinding@w3.org> Sent: Tuesday, September 05, 2006 12:32 PM Subject: ISSUE-69: Global Attributes > > > ISSUE-69: Global Attributes > > http://www.w3.org/2005/06/tracker/databinding/issues/69 > > Raised by: Paul Downey > On product: Basic > > Our current editors' draft includes patterns for global attributes: > http://www.w3.org/2002/ws/databinding/edcopy/basic/basic.html#pattern-GlobalAttribute > > Which may have crept in from generic patterns for predefined types of > attributes. > > Whilst local attributes appear to be reasonably well supported by > databinding > tools, it seems that global attributes aren't, in particular those from > another > namesapce. e.g. a schema which imports a global definition of xml:id is > unlikely > to result in each generated class containing an explicit 'id' property > meaning > it's not possible to access the xml:id values from generated code. > > In addition, we currently have no examples for global attributes as they > need a > carrier global element, so we need to embark on generating a large number > of > such examples to test our current global attribute patterns. > > Proposal: make global attributes an advanced Pattern and constrain Basic > attributes to being local to other collection patterns specified such as > by > ISSUE-47. > > > > >
Received on Thursday, 7 September 2006 08:51:11 UTC