> > <xs:element name="element2">
<xs:complexType>
<xs:sequence>
<xs:any namespace="xyz"
processContents="skip"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
This allows <element2> of the target namespace to include all elements
of namespace 'xyz'.
Flo
So, as far as I can see from http://www.w3.org/TR/xmlschema-1, if I omit
the namespace attribute, I can use any namespace. but what does the
processContent attribute do?
I consider omitting the namespace attribute not very elegant. By doing so
you simply allow everything at this point, this allows structure which
aren't allowed in other places of your document. For the
processContents-Attribute see the following Quote.
Flo
Quoting from "XML Schema" by Eric van der Vlist (O'Reilly): "processContents
specifies the behavior of the validator regarding the elements or attributes
from the specified namespace. The possible values are 'skip' (no validation
is attempted on these elements or attributes), 'strict' (schemas for the
namespace that will be included need to be available, and validators will
validate the elements and attributes against these schemas), or 'lax'
(validators will do their best to find a schema for the included elements
and attributes, validate them when they have found one, and silently skip
the validation when they haven't."