Malformed URL for master catalog
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 7
- Joined: Fri Jan 02, 2015 1:09 pm
Malformed URL for master catalog
Hi,
I'm using oXygen 17.1 for Eclipse, in Windows.
My root catalog has the following contents:
I can see from the Console view that once the root catalog is loaded and parsed, the synch.dir value is transformed correctly, but something is not to it's liking as it reports malformed URL. Immediately afterwards though, it reports that the very same catalog has been loaded.
Malformed URL on system identifier: C:/Users/myusername/ditacms_workspace/REPOSITORY/myusername/dita-qa.acme.com/dita/system/catalogs/master-catalog.xml
Loading catalog: C:/Users/myusername/ditacms_workspace/REPOSITORY/myusername/dita-qa.acme.com/dita/system/catalogs/master-catalog.xml
The end result may not be a problem as such, but can you advise how, if possible, I can avoid the malformed URL message? Some other users in my organisation do use Macs by the way (in case your solution proposes a change to the path).
Thanks,
Charles
I'm using oXygen 17.1 for Eclipse, in Windows.
My root catalog has the following contents:
Code: Select all
<?xml version="1.0" ?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">
<!-- DITA CMS 4.x Master catalog -->
<nextCatalog catalog="synch.dir/system/catalogs/master-catalog.xml"/>
</catalog>
Malformed URL on system identifier: C:/Users/myusername/ditacms_workspace/REPOSITORY/myusername/dita-qa.acme.com/dita/system/catalogs/master-catalog.xml
Loading catalog: C:/Users/myusername/ditacms_workspace/REPOSITORY/myusername/dita-qa.acme.com/dita/system/catalogs/master-catalog.xml
The end result may not be a problem as such, but can you advise how, if possible, I can avoid the malformed URL message? Some other users in my organisation do use Macs by the way (in case your solution proposes a change to the path).
Thanks,
Charles
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Malformed URL for master catalog
Hi,
synch.dir is expanded to "C:/Users/myusername/ditacms_workspace/REPOSITORY/myusername/dita-qa.acme.com/dita", which is an absolute file path.
However, you need to provide there (value of @catalog) either an absolute URL (file:/C:/Users/...), or a relative URL, not a file path.
A quick and dirty fix is to add the "file:/" prefix, but this may not always work, because the URL needs some characters to be escaped (e.g. space):
The best solution would be to use a proper URL, but not sure where you could get a "synch.url".
Regards,
Adrian
synch.dir is expanded to "C:/Users/myusername/ditacms_workspace/REPOSITORY/myusername/dita-qa.acme.com/dita", which is an absolute file path.
However, you need to provide there (value of @catalog) either an absolute URL (file:/C:/Users/...), or a relative URL, not a file path.
A quick and dirty fix is to add the "file:/" prefix, but this may not always work, because the URL needs some characters to be escaped (e.g. space):
Code: Select all
<nextCatalog catalog="file:/synch.dir/system/catalogs/master-catalog.xml"/>
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 “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