I have tried three additional (free or trial) XML validators to no avail. No validator I have tried recognizes <xs:element ref="llrp:LLRPStatus"/> unless LLRPStatus is listed as a global element within the LTK-XML namespace (I verified both the negative and the positive). The validators I have tried to this point are:
- XMLStarlet (v 1.0.1) - Stylus Studio 2009 XML Enterprise Suite Release 2 - oXygen XML Editor 10.2 - XMLmind XML Editor (v 4.3.0_01) As these are (mostly) recently released products, it is not clear to me that the desired behavior is possible when only importing complex types (i.e. not having the imported complex types declared as global elements). In fact, the paragraph following the third example at: http://www.w3.org/TR/xmlschema-0/#DefnDeclars seems to imply exactly what we are finding. The second sentence reads, "In general, the value of the ref attribute must reference a global element, i.e. one that has been declared under schema rather than as part of a complex type definition." It also goes on to state the limitation we originally tried to avoid, that using ref= means the global elements may exist as the root element within an instance document. Personally, I believe that having the ability to utilize core LTK-XML complex types within extended schemas outweighs the possibility that a LTK-XML document is produced that is only a fragment of an actual LLRP message, bringing us back to the possibility of promoting all LLRP parameters to global elements within the LTK-XML namespace as Paul suggested. Comments? Thanks again, C -----Original Message----- From: John R. Hogerhuis [mailto:[email protected]] Sent: Wednesday, June 03, 2009 1:44 PM To: LLRP Toolkit Development List Subject: Re: [ltk-d] Recommended change to llrp-1x0.xsd I think you're probably on to something. I'll see what I can find as far as other schema aware XML validators. But on the face of it, given the <import> and proper ref="" syntax in the extending schema xsd, it sure looks like what you're doing should already work. -- John. ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ llrp-toolkit-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ llrp-toolkit-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
