Register a schema
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 1
- Joined: Fri Jul 29, 2005 1:40 pm
Register a schema
Post by alistairskye »
Is it possible to register a schema in Oxygen?
I have an XML file with this:
xsi:schemaLocation="urn:test xsd/test.xsd"
in my application I have a resolver that resolves the schema location at runtime.
However, to validate the document in Oxygen I need to change it to:
xsi:schemaLocation="urn:test /path/to/xsd/test.xsd"
is there any way I can register xsd/test.xsd -> /path/to/xsd/test.xsd in Oxygen?
I have an XML file with this:
xsi:schemaLocation="urn:test xsd/test.xsd"
in my application I have a resolver that resolves the schema location at runtime.
However, to validate the document in Oxygen I need to change it to:
xsi:schemaLocation="urn:test /path/to/xsd/test.xsd"
is there any way I can register xsd/test.xsd -> /path/to/xsd/test.xsd in Oxygen?
Hi,
Not with a relative location. If you have a relative location then the schema should be at that location. If you use an absolute location then you can create a catalog to resolve the absolute schema location to a local copy and set that in oXygen.
Assuming you place the schema and the catalog in the same folder then the catalog can look like:
<?xml version="1.0"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<system
systemId="http://www.example.com/schema.xsd"
uri="schema.xsd"/>
</catalog>
The catalog should be added in the catalog list from
Options->Preferences -- XML -- XML Catalog page.
Then in the document you should use the absolute location, http://www.example.com/schema.xsd for instance in the above example.
Best Regards,
George
Not with a relative location. If you have a relative location then the schema should be at that location. If you use an absolute location then you can create a catalog to resolve the absolute schema location to a local copy and set that in oXygen.
Assuming you place the schema and the catalog in the same folder then the catalog can look like:
<?xml version="1.0"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<system
systemId="http://www.example.com/schema.xsd"
uri="schema.xsd"/>
</catalog>
The catalog should be added in the catalog list from
Options->Preferences -- XML -- XML Catalog page.
Then in the document you should use the absolute location, http://www.example.com/schema.xsd for instance in the above example.
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