[xsd-users] ##any type problems
Bradley Beddoes
beddoes at intient.com
Thu Dec 14 01:48:02 EST 2006
Hi,
I am attempting to compile a schema using XSD and am running into
problems around the ##any types it defines, the reported errors are:
saml-schema-protocol-2.0.xsd:50:56: error: element 'Signature' is
defined here
saml-schema-protocol-2.0.xsd:229:81: error: such wildcards are not supported
saml-schema-protocol-2.0.xsd:229:81: error: namespace '##any' allows for
element 'Extensions'
saml-schema-protocol-2.0.xsd:51:60: error: element 'Extensions' is
defined here
saml-schema-protocol-2.0.xsd:229:81: error: such wildcards are not supported
saml-schema-protocol-2.0.xsd:229:81: error: namespace '##any' allows for
element 'Status'
saml-schema-protocol-2.0.xsd:52:42: error: element 'Status' is defined here
saml-schema-protocol-2.0.xsd:229:81: error: such wildcards are not supported
The schema is available from:
http://docs.oasis-open.org/security/saml/v2.0/saml-schema-protocol-2.0.xsd
The corresponding piece of schema is:
<element name="ArtifactResponse" type="samlp:ArtifactResponseType"/>
<complexType name="ArtifactResponseType">
<complexContent>
<extension base="samlp:StatusResponseType">
<sequence>
<any namespace="##any" processContents="lax" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
Command:
./xsd cxx-tree --show-sloc --generate-polymorphic --namespace-map
http://www.w3.org/2001/04/xmlenc#=w3::xmlenc --namespace-map
http://www.w3.org/2000/09/xmldsig#=w3::xmldsig --namespace-map
urn:oasis:names:tc:SAML:2.0:assertion=saml::assertion --namespace-map
urn:oasis:names:tc:SAML:2.0:metadata=saml::metadata --namespace-map
urn:oasis:names:tc:SAML:2.0:protocol=saml::protocol --output-dir.........
There is another instance of ##any in the same schema file which seems
to pass by without problem, I have looked at the various pieces of
documentation and can't seem to determine if there is any specific flag
I should be setting to get this to operate correctly. Can anyone please
advise if XSD should be able to compile this schema and if so what I
might be doing wrong? The "such wildcards are not supported" statement
is a bit of a concern.
thanks,
Bradley
More information about the xsd-users
mailing list