disregarding xsi:noNamespaceSchemaLocation?

  • Thread starter Jean-François Michaud
  • Start date
J

Jean-François Michaud

Hello guys,

I was wondering if it was possible to disregard the
xsi:noNamespaceSchemaLocation. For validation it's obviously easier to
have it point to say a local directory but the final
xsi:noNamespaceSchemaLocation has to point to a specific location that
is not local. I was wondering if it was possible to make sure that the
xsi:noNamespaceSchemaLocation points to the non local location, force
the parser to disregard the xsi:noNamespaceSchemaLocation and force it
to validate against a specific XSD in a location of our choice to
avoid having to tinker with the SchemaLocation XML attribute just for
the validation.

I'm using Saxon8

Any thoughts?

Regards
Jean-Francois Michaud
 
M

Martin Honnen

Jean-François Michaud said:
I was wondering if it was possible to disregard the
xsi:noNamespaceSchemaLocation. For validation it's obviously easier to
have it point to say a local directory but the final
xsi:noNamespaceSchemaLocation has to point to a specific location that
is not local. I was wondering if it was possible to make sure that the
xsi:noNamespaceSchemaLocation points to the non local location, force
the parser to disregard the xsi:noNamespaceSchemaLocation and force it
to validate against a specific XSD in a location of our choice to
avoid having to tinker with the SchemaLocation XML attribute just for
the validation.

I'm using Saxon8

You might want to ask on the Saxon mailing list.
For the current release Saxon 9 the documentation is online here
<URL:http://www.saxonica.com/documentation/schema-processing/commandline.html>
and suggests that you can set the -xsd:file;file option the specify
schema documents to be used for validation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top