[xsd-users] [Q] How does one use remote schema locations?
Alexander Petry
petry at itwm.fhg.de
Mon Feb 4 09:37:24 EST 2008
Hi list,
this is my first post to this list, so hello everybody.
I am currently trying to do the following from within my XML Schema
definition:
<xs:import namespace="http://www.w3.org/2001/04/xmlenc#" schemaLocation="xenc-schema.xsd"/>
This imports the given XML Schema from a local file. The problem in this
case is, that the XML Encryption Schema imports the XML Digital Signature
Schema using a remote URI:
<import namespace='http://www.w3.org/2000/09/xmldsig#'
schemaLocation='http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd'/>
Unfortunately, this seems not to work with 'xsd':
xsd cxx-tree --namespace-map "http://www.w3.org/2001/04/xmlenc#=XMLEnc" xenc-schema.xsd
xenc-schema.xsd: error: 'http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd' is not a valid filesystem path
Did I do something wrong or are remote schema locations not supported?
Best regards,
Alex
More information about the xsd-users
mailing list