[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

catalog questions

  • From: David Nedrow <dnedrow@xxxxxxx>
  • To: List - XML-dev <xml-dev@xxxxxxxxxxxxx>
  • Date: Wed, 30 Aug 2006 12:41:23 -0400

method_context
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.