Catalog not getting parsed for certain elements
Post here questions and problems related to oXygen frameworks/document types.
Catalog not getting parsed for certain elements
I'm trying to use rewriteSystem and rewriteURI entries to my DocBook catalog and am running into some issues. I added the following entries to the catalog:
I added the following to one of my source files:
When I view the source file in Author mode, the contents of section.xml and the programlisting with the hard-coded file path are displayed correctly, but I get a Target file not found error that says that \\SharedCode\ruby-example.rb could not be found for the SharedCode entry.
It appears that the catalog is not being parsed when the xi:include is inside of a text element.
Is there a way to tell the parser to use the catalog for other parent element types?
Code: Select all
<rewriteSystem systemIdStartString="file://SharedCode/" rewritePrefix="file:///C:/shared-code/"/>
<rewriteURI uriStartString="file://SharedCode/" rewritePrefix="file:///C:/shared-code/"/>
Code: Select all
<programlisting><xi:include href="file://SharedCode/ruby-example.rb" parse="text"/></programlisting>
<programlisting><xi:include href="file:///C:/shared-code/ruby-example.rb" parse="text"/></programlisting>
<xi:include href="file://SharedCode/section.xml" parse="xml"/>
Code: Select all
Severity: warning
Description: [Document]:\\SharedCode\ruby-example.rb (The network path was not found)
Is there a way to tell the parser to use the catalog for other parent element types?
Re: Catalog not getting parsed for certain elements
Hi,
What version and build of Oxygen are you using (Help > About)?
From what I tested, there appears to be an inconsistency (bug) in the way network share URIs are currently (v18) resolved. While the validation prefers the original form file://server/share (2 slashes), the Author mode prefers the alternate form file:////server/share (4 slashes).
So, right now, due to this inconsistency between Oxygen mechanisms, you have to resolve both forms in the XML catalog.
For your example, you have to duplicate the entries in the catalog and also resolve the alternate form "file:////SharedCode/" (4 slashes).
For most XML Catalog problems, you should set In Options > Preferences, XML > XML Catalog, Verbosity to "All messages" and check in the Catalogs view the attempts that the catalog resolver makes. Note that not all attempts must succeed.
Regards,
Adrian
What version and build of Oxygen are you using (Help > About)?
From what I tested, there appears to be an inconsistency (bug) in the way network share URIs are currently (v18) resolved. While the validation prefers the original form file://server/share (2 slashes), the Author mode prefers the alternate form file:////server/share (4 slashes).
So, right now, due to this inconsistency between Oxygen mechanisms, you have to resolve both forms in the XML catalog.
For your example, you have to duplicate the entries in the catalog and also resolve the alternate form "file:////SharedCode/" (4 slashes).
For most XML Catalog problems, you should set In Options > Preferences, XML > XML Catalog, Verbosity to "All messages" and check in the Catalogs view the attempts that the catalog resolver makes. Note that not all attempts must succeed.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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