Hi,
I am trying to use the excellent validation function. It used to work great, however, recently we added a xs:include statement. Now the validator can't find the included schema (that is located in the same directory as the including schema). I think the validator is missing a ResourceResolver. It works fine though if I include an absolute path. But absolute paths tend to only work on one machine. Any help is much appreciated.
Hartelijke groet,
Huib Verweij.
Verstuurd vanaf mijn iPhone
Hello Huib,
Would you be so kind to provide a small example [1] about what you are doing exactly. I am pretty sure the xs:include() works quite well, as I used it recently. I used the xsd in [2] and as you can see this is relative as well.
Cheers, Dirk
[1] http://mindprod.com/jgloss/sscce.html [2] http://www.editeur.org/onix/2.1/short/ONIX_BookProduct_Release2.1_short.xsd
On Tue, Jul 24, 2012 at 10:56 AM, Huib Verweij <huib.verweij@carthago-ict.nl
wrote:
Hi,
I am trying to use the excellent validation function. It used to work great, however, recently we added a xs:include statement. Now the validator can't find the included schema (that is located in the same directory as the including schema). I think the validator is missing a ResourceResolver. It works fine though if I include an absolute path. But absolute paths tend to only work on one machine. Any help is much appreciated.
Hartelijke groet,
Huib Verweij.
Verstuurd vanaf mijn iPhone _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi Dirk,
thanks for the quick answer. Good to know it *should* work and does work. I'm using basexhttp and RESTXQ, and have the schemas in a directory next to the "http" directory, e.g. "../xsd/Book.xsd". The including schema is found, but the included is not. I'll make a sscce. Perhaps it'll simply be enough to move the schemas to the "http" directory. I read something about not using ".." in the path.
Hartelijke groet,
Huib.
Verstuurd vanaf mijn iPhone
Op 24 jul. 2012 om 12:19 heeft "Dirk Kirsten" dk@basex.org het volgende geschreven:
Hello Huib,
Would you be so kind to provide a small example [1] about what you are doing exactly. I am pretty sure the xs:include() works quite well, as I used it recently. I used the xsd in [2] and as you can see this is relative as well.
Cheers, Dirk
[1] http://mindprod.com/jgloss/sscce.html [2] http://www.editeur.org/onix/2.1/short/ONIX_BookProduct_Release2.1_short.xsd
On Tue, Jul 24, 2012 at 10:56 AM, Huib Verweij huib.verweij@carthago-ict.nl wrote: Hi,
I am trying to use the excellent validation function. It used to work great, however, recently we added a xs:include statement. Now the validator can't find the included schema (that is located in the same directory as the including schema). I think the validator is missing a ResourceResolver. It works fine though if I include an absolute path. But absolute paths tend to only work on one machine. Any help is much appreciated.
Hartelijke groet,
Huib Verweij.
Verstuurd vanaf mijn iPhone _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Oops. My bad. I created a XML document from the schema, instead of using just the name. So there was no baseURI to look for included schemas I guess. Don't know why I did that ...
Thanks Dirk.
Hartelijke groet,
Huib.
Verstuurd vanaf mijn iPhone
Op 24 jul. 2012 om 13:18 heeft Huib Verweij huib.verweij@carthago-ict.nl het volgende geschreven:
Hi Dirk,
thanks for the quick answer. Good to know it *should* work and does work. I'm using basexhttp and RESTXQ, and have the schemas in a directory next to the "http" directory, e.g. "../xsd/Book.xsd". The including schema is found, but the included is not. I'll make a sscce. Perhaps it'll simply be enough to move the schemas to the "http" directory. I read something about not using ".." in the path.
Hartelijke groet,
Huib.
Verstuurd vanaf mijn iPhone
Op 24 jul. 2012 om 12:19 heeft "Dirk Kirsten" dk@basex.org het volgende geschreven:
Hello Huib,
Would you be so kind to provide a small example [1] about what you are doing exactly. I am pretty sure the xs:include() works quite well, as I used it recently. I used the xsd in [2] and as you can see this is relative as well.
Cheers, Dirk
[1] http://mindprod.com/jgloss/sscce.html [2] http://www.editeur.org/onix/2.1/short/ONIX_BookProduct_Release2.1_short.xsd
On Tue, Jul 24, 2012 at 10:56 AM, Huib Verweij huib.verweij@carthago-ict.nl wrote: Hi,
I am trying to use the excellent validation function. It used to work great, however, recently we added a xs:include statement. Now the validator can't find the included schema (that is located in the same directory as the including schema). I think the validator is missing a ResourceResolver. It works fine though if I include an absolute path. But absolute paths tend to only work on one machine. Any help is much appreciated.
Hartelijke groet,
Huib Verweij.
Verstuurd vanaf mijn iPhone _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de