Developers,

We've run into an issue with llrp-1x0-def.xsd and the use of LLRP vendor 
extensions.  If you build a vendor extension that contains a core LLRP 
parameter, the message won't validate (against this schema) because the core 
LLRP parameters are not a top level element of the schema).  For example, we 
use the LLRPStatusParameter within some of our custom messages as there was no 
reason to re-invent a new error reporting scheme.  Because LLRPStatus is not in 
the top level of the llrp-1x0.xsd schema, these custom messages won't validate 
even though they are compliant.

The fix would be to add all the LLRP core parameters to the root elements in 
the schema. E.g. where we have

      <!-- Message top-level elements -->
      <xs:element name="KEEPALIVE" type="llrp:KEEPALIVE"/>
      <xs:element name="CLOSE_CONNECTION" type="llrp:CLOSE_CONNECTION"/>
      <xs:element name="GET_READER_CONFIG" type="llrp:GET_READER_CONFIG"/>
      <xs:element name="DISABLE_ACCESSSPEC" type="llrp:DISABLE_ACCESSSPEC"/>
      <xs:element name="SET_READER_CONFIG" type="llrp:SET_READER_CONFIG"/>
      <xs:element name="ERROR_MESSAGE" type="llrp:ERROR_MESSAGE"/>
      . . .
      <xs:element name="LLRPStatus" type="llrp:LLRPStatus"/>
      . . .


Since this change is in schema notation only, I recommend that we update the 
current 1.0 version but use the same version numbers (i.e. we would not change 
this

<xs:schema
      xmlns:xs="http://www.w3.org/2001/XMLSchema";
      targetNamespace="http://www.llrp.org/ltk/schema/core/encoding/xml/1.0";
      xmlns="http://www.llrp.org/ltk/schema/core/encoding/xml/1.0";
      xmlns:llrp="http://www.llrp.org/ltk/schema/core/encoding/xml/1.0";
      elementFormDefault="qualified"
>

Comments? Does anyone forsee any compatibility issues with this change?

Regards

Paul

------------------------------------------------------------------------------
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