ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SCHOEPFLIN Markus <>
Subject How to enable XInclude processing for schemavalidate task
Date Tue, 24 May 2016 11:53:07 GMT
Hello list,

I'm trying to enable XInclude processing in the schemavalidate task:

        noNamespaceFile="${user.input.xsd}" file="${user.input.xml}">
      <attribute name="" value="true"/>

This does not work, as I'm still getting an error when the task is executed: "foo.xsd:8:136:
s4s-elt-schema-ns: The namespace of element 'include' must be from the schema namespace, ''."

The corresponding schema file looks like this:

  <xs:schema xmlns:xs="" xmlns:xi="">
    <xi:include href="..." xpointer="xmlns(xs=*)"/>

When enabling Ant debug mode, I can see that the feature is correctly set on the parser:

[schemavalidate] Using SAX2 reader org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
[schemavalidate] Setting feature
[schemavalidate] Setting feature
[schemavalidate] Setting feature
[schemavalidate] Setting feature
[schemavalidate] Setting feature
[schemavalidate] Validating foo.xml...

What am I missing? Or is this not supported?

Thanks for any help,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message