[SM3] vendor extension: ##other

[SM3] vendor extension: ##other

Norbert Schade Norbert.Schade at conexant.com
Fri Feb 7 18:28:10 UTC 2014


I am still heavily editing my sample xml instances as discussed yesterday in the SM3 meeting.
However I think I've figured out part of the problem.
When I look at vendor extensions (i.e. the 'xs:any' elements) in many of the 185 schemas, I see that the corresponding namespace shows '##other'.
That matches my studies, as I was able to refer to objects of my own Conexant specific schema which I had properly incorporated.
I think that '##other' definition prevents me from referencing any objects of the targetNamespace.
And indeed, once I start replacing the '##other' lines with a generic vendor element, I make significant progress:

Before
                                                                <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
Now
                                                                <xs:element name="VendorExtension" type="VendorExtension" minOccurs="0" maxOccurs="unbounded"/>

And declare the VendorExtension object:
                <xs:complexType name="VendorExtension">
                                <xs:sequence>
                                                <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
                                </xs:sequence>
                </xs:complexType>

Note:
A 'any' element has to be the only element in the controlling object; or the schema becomes ambiguous.
Therefore I had to move that definition out of the objects that may want an extension and put it in a single VendorExtension object.

I'm sure there are reasons to work with a '##other' namespace, but at least that is part of our syntax problem.
Agreed?
Norbert


Norbert Schade
Systems Engineer (printing)
Imaging Solutions
Conexant Systems, Inc.
201 Jones Road
Waltham, MA 02451
U.S.A.
Tel: 1-781-370-8929
Email: norbert.schade at conexant.com<mailto:norbert.schade at conexant.com>


Conexant E-mail Firewall (Conexant.Com) made the following annotations
---------------------------------------------------------------------
********************** Legal Disclaimer **************************** 

"This email may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use or distribution by others is strictly prohibited. If you have received the message in error, please advise the sender by reply email and delete the message. Thank you." 

********************************************************************** 

---------------------------------------------------------------------



More information about the sm3 mailing list