[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] catalog questions
Sun uses a new system for handling services that system involves DTD- based XML files. I'd like to use edit and validate these files these files on my local system. For whatever reason, Sun uses an absolute path for the document type... Code: <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/ service_bundle.dtd.1'> I'd like to keep the DTDs locally, so I've copied the Solaris DTDs to /opt/xml/sun-SMF/dtd. In my main (working) catalog file, I've added a <nextCatalog/> entry pointing to /opt/xml/catalog.xml which in turn contains a number of <nextCatalog/ > entries, including: Code: <nextCatalog catalog="sun-SMF/catalog.xml" /> I've tried a number of variations of rewrites in the sun-SMF/ catalog.xml, but have yet to clear parser complaints about not finding /usr/share/lib/xml/dtd/service_bundle.dtd.1. Basically, I need to rewrite the standard Sun SYSTEM identifier to point to my local files without 'tampering' with the content of the file itself. Below is one of the iterations of the catalog I've tried and a sample markup. If someone can tell me what I'm doing wrong, I'd really appreciate it. If anyone cares to see them, the DTD files are available at... http://nedron.net/xml-test/sun-mfs-dtd.tar -David Code: <?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> <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/ service_bundle.dtd.1"> <service_bundle type='manifest' name='postgresql'> <service name='application/postgresql' type='service' version='1'> <instance name='postmaster' enabled='false'> <exec_method type='method' name='start' exec='su - postgres -c "/usr/bin/pg_ctl start -D /var/lib/pgsql/data -l /usr/pgsql.log"' timeout_seconds='60'> <method_context> <method_credential user='postgres' group='postgres'/> </method_context> </exec_method> <exec_method type='method' name='stop' exec='su - postgres -c "/usr/bin/pg_ctl stop -D /var/lib/pgsql/data"' timeout_seconds='60' /> <exec_method type='method' name='refresh' exec='su - postgres -c "/usr/bin/pg_ctl restart -D /var/lib/pgsql/data"' timeout_seconds='60' /> </instance> <stability value='Unstable' /> </service> </service_bundle> [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|