On 10/14/2010 08:00 PM, Hussein Shafie wrote:
On 10/14/2010 05:10 PM, Philippe Nobili wrote:
[NB: Maybe this is a silly question, and there is something obvious that
I have missed...]

We use xmltool to validate our XML documents (conforming to our in-house
schema) with xmltool.
For this, we use the '-s' option of xmltool and provide the path to our
XML schema. This works fine. For flexiblity reasons, we now have decided
to use XML catalogs to locate the schema.  So we used the environment
variable *XML_CATALOG_FILES* (comma separated list of file's path);
unfortunately, we cannot have *xmltool* locate our schema correctly with
this mechanism, and we always get the same warning (quite clear):

*WARNING: Cannot determine which schema to use for validating*

In our XML instances:
xmlns="http://www.cggveritas.com/geovation/module/2.0";
The catalog entry runs like this:
  <uri name="http://www.cggveritas.com/geovation/module/2.0";
uri="xsd/module/2.0/module.xsd"/>


The above warning indicates that the problem is not related to XML catalogs.

Without the -s option, xmltool expects your instances to have an
xsi:schemaLocation or an xsi:noNamespaceSchemaLocation attribute.
Dear M. Shafie,

You are right; for whatever reason, some of our XML instances do not have the XML schema location attribute; for the time being, we will use the '-s' option of xmltool which always gives us the expected result.

Many thanks for your help,
Best regards.
Philippe.

<<attachment: philippe_nobili.vcf>>

 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to