disregarding xsi:noNamespaceSchemaLocation?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?ISO-8859-1?Q?Jean=2DFran=E7ois_Michaud?=

    disregarding xsi:noNamespaceSchemaLocation?

    Hello guys,

    I was wondering if it was possible to disregard the
    xsi:noNamespace SchemaLocation. For validation it's obviously easier to
    have it point to say a local directory but the final
    xsi:noNamespace SchemaLocation has to point to a specific location that
    is not local. I was wondering if it was possible to make sure that the
    xsi:noNamespace SchemaLocation points to the non local location, force
    the parser to disregard the xsi:noNamespace SchemaLocation 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
  • Martin Honnen

    #2
    Re: disregarding xsi:noNamespace SchemaLocation?

    Jean-François Michaud wrote:
    I was wondering if it was possible to disregard the
    xsi:noNamespace SchemaLocation. For validation it's obviously easier to
    have it point to say a local directory but the final
    xsi:noNamespace SchemaLocation has to point to a specific location that
    is not local. I was wondering if it was possible to make sure that the
    xsi:noNamespace SchemaLocation points to the non local location, force
    the parser to disregard the xsi:noNamespace SchemaLocation 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.co m/documentation/schema-processing/commandline.htm l>
    and suggests that you can set the -xsd:file;file option the specify
    schema documents to be used for validation.

    --

    Martin Honnen

    Comment

    • =?ISO-8859-1?Q?Jean=2DFran=E7ois_Michaud?=

      #3
      Re: disregarding xsi:noNamespace SchemaLocation?

      On Apr 14, 10:30 am, Martin Honnen <mahotr...@yaho o.dewrote:
      Jean-François Michaud wrote:
      I was wondering if it was possible to disregard the
      xsi:noNamespace SchemaLocation. For validation it's obviously easier to
      have it point to say a local directory but the final
      xsi:noNamespace SchemaLocation has to point to a specific location that
      is not local. I was wondering if it was possible to make sure that the
      xsi:noNamespace SchemaLocation points to the non local location, force
      the parser to disregard the xsi:noNamespace SchemaLocation 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.co m/documentation/schema-processing/commandline.htm l>
      and suggests that you can set the -xsd:file;file option the specify
      schema documents to be used for validation.
      Super! Thanks for the input ;-).

      Regards
      Jean-Francois Michaud

      Comment

      Working...