validation with relative pathes in schemaLocation
Are you missing a feature? Request its implementation here.
-
- Posts: 2
- Joined: Fri Sep 12, 2003 12:58 pm
validation with relative pathes in schemaLocation
I have several xml-files which I validate with schemas that are local (on my harddisk).
When I add a relative path to the schema,
(eg. xsi:noNamespaceSchemaLocation="file:../schema/reportDefinition.xsd")
the validation fails with the error:
- [ reportDefinitions.xml] E cvc-elt.1: Cannot find the declaration of element '<rootelement>'.
It wolud be nice, when the working-directory where set to the directory of the file which is currently edited / validated.
BTW, the schema is found by oxygen: When I click 'open external schema', the right schema is opened.
Greetings
Holger
When I add a relative path to the schema,
(eg. xsi:noNamespaceSchemaLocation="file:../schema/reportDefinition.xsd")
the validation fails with the error:
- [ reportDefinitions.xml] E cvc-elt.1: Cannot find the declaration of element '<rootelement>'.
It wolud be nice, when the working-directory where set to the directory of the file which is currently edited / validated.
BTW, the schema is found by oxygen: When I click 'open external schema', the right schema is opened.
Greetings
Holger
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Dear Holger,
Please do not use file when you specify a relative location. Imagine that you publish your documents on a web server, there you have http instead of file and I guess you expect the relative reference to work also there. Try with
and it should work.
Best Regards,
George
Please do not use file when you specify a relative location. Imagine that you publish your documents on a web server, there you have http instead of file and I guess you expect the relative reference to work also there. Try with
Code: Select all
xsi:noNamespaceSchemaLocation="../schema/reportDefinition.xsd"
Best Regards,
George
-
- Posts: 2
- Joined: Fri Sep 12, 2003 12:58 pm
Thank you! It works. Mayby a topic for faq?
Holger
Holger
george wrote:Dear Holger,
Please do not use file when you specify a relative location. Imagine that you publish your documents on a web server, there you have http instead of file and I guess you expect the relative reference to work also there. Try withand it should work.Code: Select all
xsi:noNamespaceSchemaLocation="../schema/reportDefinition.xsd"
Best Regards,
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service