Catalog questions
Posted: Wed Aug 30, 2006 5:53 pm
This isn't specifically oXygen related, so I can take it to one of the xml lists if necessary.
Thought I'd try here first though.
Sun uses a new system for handling services. This system involves DTD-based XML files.
I'd like to use oXygen to edit and validate these files.
For whatever reason, Sun uses an absolute path for the document type...
Since I typically run oXygen on a non-Solaris platform, I'd like to keep the DTDs locally.
So, I've copied the Solaris DTDs to /opt/xml/sun-SMF/dtd.
In the oXygen frameworks/catalog.xml, I've added a <nextCatalog/> entry pointing to
/opt/xml/catalog.xml which in turn contains a number of <nextCatalog/> entries, including:
I've tried a number of variations of rewrites in the sun-SMF/catalog.xml, but have yet to clear the hurdle of oXygen complaining about not finding /usr/share/lib/xml/dtd/service_bundle.dtd.1.
Below is one of the iterations I've tried. If someone can tell me what I'm doing wrong, I'd really appreciate it.
-David
Thought I'd try here first though.

Sun uses a new system for handling services. This system involves DTD-based XML files.
I'd like to use oXygen to edit and validate these files.
For whatever reason, Sun uses an absolute path for the document type...
Code: Select all
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
So, I've copied the Solaris DTDs to /opt/xml/sun-SMF/dtd.
In the oXygen frameworks/catalog.xml, I've added a <nextCatalog/> entry pointing to
/opt/xml/catalog.xml which in turn contains a number of <nextCatalog/> entries, including:
Code: Select all
<nextCatalog catalog="sun-SMF/catalog.xml" />
Below is one of the iterations I've tried. If someone can tell me what I'm doing wrong, I'd really appreciate it.
-David
Code: Select all
<?xml version="1.0"?>
<!DOCTYPE catalog
PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<!-- <group xml:base="file:///Volumes/iDisk/xml/sun-SMF/dtd/"> -->
<!-- ...................................................................... -->
<!-- XML Catalog data for Service Management Facility ...................... -->
<!-- File catalog.xml ..................................................... -->
<rewriteURI
uriStartString="/usr/share/lib/xml/dtd/service_bundle.dtd.1"
rewritePrefix="service_bundle.dtd.1"/>
<!-- </group> -->
</catalog>