XML catalog uri element
Questions about XML that are not covered by the other forums should go here.
XML catalog uri element
I can't seem to get the uri element to work in an XML catalog in the 6.0.0 version of the plugin for Eclipse 3.1. The rewriteSystem declaration below works fine, but when I try to validate a document whose root element is in the namespace, http://my.uri.goes/here/A, I get an error saying Oxygen can't find the declaration of the root element. I turned on verbose reporting in the catalog preferences and nothing even shows up on the console. Any ideas what's going on? Or what's not going on?
Any help would be much appreciated.
Code: Select all
<catalog
xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer="public">
<group
xml:id="schemaNamespaceMappings"
xml:base="file:///home/me/schemas/">
<uri
name="http://my.uri.goes/here/A"
uri="A.xsd"/>
<uri
name="http://my.uri.goes/here/B"
uri="B.xsd"/>
</group>
<rewriteSystem
systemIdStartString="http://some/other/uri/prefix"
rewritePrefix="file:///shared/schemas/"/>
</catalog>
Hi,
The catalog is used as an entity resolver on the XML Parser. That means it never gets a chance to resolve a namespace, it will be called by the XML parser to resolve the system ID that represents the schema location.
For mapping between namespaces to schemas you may use the Options->Preferences -- Editor / Tag Insight / Default
and map a namespace to a schema. Those schemas are used both for content completion and validation when the document does not define a schema.
Best Regards,
George
The catalog is used as an entity resolver on the XML Parser. That means it never gets a chance to resolve a namespace, it will be called by the XML parser to resolve the system ID that represents the schema location.
For mapping between namespaces to schemas you may use the Options->Preferences -- Editor / Tag Insight / Default
and map a namespace to a schema. Those schemas are used both for content completion and validation when the document does not define a schema.
Best Regards,
George
George,
Your instructions seem to work for a document that can be validated with a single schema (or a schema that explicitly imports other namespaces). However, I've got an xs:any declaration, such as
My instance contains an element, e.g. b:B, as an xs:any instance. b:B is not defined in the schema that defines the document's root element. I've mapped the namespace associated with the b prefix with oXygen as you've specified below. However, the validator complains that it can't find the definition of b:B. Is this is bug or is this beyond how schema location look-ups should work?
Thanks.
Your instructions seem to work for a document that can be validated with a single schema (or a schema that explicitly imports other namespaces). However, I've got an xs:any declaration, such as
Code: Select all
<xs:any
namespace="##other"
processContents="strict"
maxOccurs="unbounded"/>
Thanks.
Return to “General XML Questions”
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