Chris,

I do not understand why it is necessary to reference llrp:LLRPStatus. 
Why wouldn't defining it the conventional way with name and type the 
conventional way work for you?

e.g.  <xs:element name="LLRPStatus" type="llrp:LLRPStatus" />

instead of  <xs:element ref="llrp:LLRPStatus" />.

Even, if you LLRPStatus was defined under the extension name space, 
referencing a complex type would not be allowed (as mentioned in the 
text you quoted).

Christian





John R. Hogerhuis wrote:
> On Thu, Jun 4, 2009 at 9:55 AM, Chris Delaney <[email protected]> 
> wrote:
> 
>> 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.
>>
> 
> FWIW, I read that differently. I think all the complex types in
> question are declared directly under the schema element so given
> import, ref should work. I think what they are getting at there is
> that it cannot be something nested within a complex type.
> 
> I think we need an XML expert to weight in here as to what we're doing wrong.
> 
> Otherwise, what is "import" tag for?
> 
> -- 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

Reply via email to