It looks to me that in the case where the schema is presented as XML it is
written to a temporary file [1] so relative includes/imports will not be
resolved.
Thanks, and yes, this seems to be the problem. We could think about
writing the temporary file to the query directory, but this may
Well it is not clear to me what should be expected to work when some XML is
provided as a schema that has no clear location but contains relative uri
references.
It looks like in Hans-Juegen's case just supplying $xsdURI instead of
doc( $xsdURI) would work. (or base-uri(doc( $xsdURI)) )
I think
Thank you very much, Christian, Andy and France!
I'm very glad that Andy revealed the simple cause simple remedy - to use the
XSD URI, rather than the XSD doc. This works fine for the scenarios I am
currently dealing with, which are not performance critical. (I am not sure, but
for reasons of
Sorry for the delay, yes that's what I am doing. I didn't realize your
issue was on the file system. I haven't had issue validating from the file
system.
France
On Thu, Sep 11, 2014 at 2:57 PM, Hans-Juergen Rennau hren...@yahoo.de
wrote:
Thank you, France, for sharing this. But I am not sure
It would be wonderful if imports/includes could be automatically resolved -
the validate module could then be extremely useful!
As we use external code for processing XSD, I'm not quite sure if we
can do something about this. - Could you possibly provide us with a
self-contained example that we
I just want to second that suggestion! In the mean time, Hans, what I do id
this:
*let **$xsd-file-path* := *fix-validation:update-file-system-dtds-xsds*(
*$xsd*)
*return **validate:xsd*(*$file*, *$xsd-file-path*)
...
*declare function **fix-validation:update-file-system-dtds-xsds*(*$dtd* *as
Dear BaseX team,
I face a problem with the validate module. My impression when using
validate:xsd-info is the following:
(a) if the XSD is supplied as argument - xs:import is NOT resolved
(b) if the XSD is inferred from xsi:schemaLocation - xs:import IS resolved
It would be wonderful if
7 matches
Mail list logo