Next in thread → Next in month →

Re: [docbook-apps] What Goes in ~/.xmlc To Build the CVS Examples?

From
Michael(tm) Smith <>
Date
2006-01-18T04:12:26+00:00
ID
Thread
Re: [docbook-apps] What Goes in ~/.xmlc To Build the CVS Examples?
Simon Blanchard <> writes:

> I've grabbed the docbook files via CVS and I'd like to be able to make 
> the example slides project myself - since I am preparing my own slides 
> I figure this will give me an idea of how to do the processing. The 
> tools - perl wrappers in cvstools - are configured via a file 
> (usually) called ~/.xmlc but I can not figure out what the content of 
> that file should look like. Please can someone help with an example of 
> ~/.xmlc.
> 
> If I could translate this Perl
> 
> $xp->find("/config/*[\@xml:id='$id']")
> 
> To XML format I'd be OK...
> 
> It's <config></config> something but I can not figure out the xml:id bit.

I have been away from DocBook XSL stylesheet development for a few
weeks, but the last time I tested with my CVS sandbox, the
following .xmlc file is what I used. But I have not tested with it
recently, and I think Norm has made some changes recently that
might require it to be updated and added to. Anyway, I hope that
it helps as a start at least.

<?xml version='1.0' encoding='utf-8'?> <!-- -*- nxml -*- -->
<config>
  <java classpath-separator=":" xml:id="java">
    <system-property name="javax.xml.parsers.DocumentBuilderFactory"
      value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
    <system-property name="javax.xml.parsers.SAXParserFactory"
      value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
    <classpath path="/usr/share/java/xercesImpl.jar"/>
    <classpath path="/usr/share/java/jaxp-1.2.jar"/>
    <classpath path="/usr/share/java/xml-commons-resolver-1.1.jar"/>
  </java>

  <java xml:id="bigmem">
    <java-option name="Xmx512m"/>
  </java>

  <saxon xml:id="saxon" extends="java">
    <arg name="x" value="org.apache.xml.resolver.tools.ResolvingXMLReader"/>
    <arg name="y" value="org.apache.xml.resolver.tools.ResolvingXMLReader"/>
    <arg name="r" value="org.apache.xml.resolver.tools.CatalogResolver"/>
    <param name="use.extensions" value="1"/>
  </saxon>

  <saxon xml:id="saxonb-8" extends="saxon" class="net.sf.saxon.Transform"
    java="/usr/bin/java">
    <classpath path="/sandbox/xsl2/extensions/build/lib/docbook-xsl2-saxon.jar"/>
    <classpath path="/usr/share/java/saxon8.jar"/>
    <classpath path="/sourceforge/docbook/xsl/extensions/saxon8.jar"/>
  </saxon>

  <saxon xml:id="saxon-6" extends="saxon" class="com.icl.saxon.StyleSheet">
    <classpath path="/usr/share/java/saxon-6.5.4.jar"/>
    <classpath path="/sandbox/xsl/extensions/saxon65.jar"/>
  </saxon>
</config>


-- 
Michael(tm) Smith
http://tokyo.metblogs.com/
http://www.oreillynet.com/pub/au/890
Next in thread → Next in month →