[Yanel-usage] Docbook / ant tasks

Michael Wechner michael.wechner at wyona.com
Wed Jun 4 10:48:49 CEST 2008



Mike W wrote:

> I use a docbook / ant framework called "Dopus".


I guess you mean

http://cms.agynamix.de/agynamix-dopus.html

right?

Thanks very much for the pointer

Btw, we have committed the fixes such that XSLTs are resolved properly 
(from within an abstract repository) and are currently working on that 
all the other stuff is also resolved properly (entities and document 
functions).

We are getting there ;-)

Cheers

Michael

> All xslt processing is done by a macro called "xslt-runner" which is 
> included below.
>
>   <macrodef name="xslt-runner">
>     <attribute name="dir" 
> default="${project.dir.output}/${project.output.mode}" />
>     <attribute name="inputfile" 
> default="${project.dir.output}/${project.output.mode}/${project.input.file}.docbook" 
> />
>     <attribute name="outputfile" default="" />
>     <attribute name="stylesheet"/>
>     <attribute name="maxmemory" default="${xslt.maxmemory.default}" />
>     <element name="xslt-argset" optional="true"/>
>     <sequential>
>       <java fork="true" dir="@{dir}" failonerror="true" 
> maxmemory="@{maxmemory}" classname="com.icl.saxon.StyleSheet">
>         <classpath refid="saxon.classpath" />
>         <jvmarg line="-Dhttp.proxyHost=${http.proxyHost}" />
>         <jvmarg line="-Dhttp.proxyPort=${http.proxyPort}" />
>         <jvmarg 
> line="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl" 
> />
>         <jvmarg 
> line="-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl" 
> />
>         <jvmarg 
> line="-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration" 
> />
>         <arg line="-x org.apache.xml.resolver.tools.ResolvingXMLReader" />
>         <arg line="-y org.apache.xml.resolver.tools.ResolvingXMLReader" />
>         <arg line="-r org.apache.xml.resolver.tools.CatalogResolver" />
>         <arg line="@{outputfile}" />
>         <arg value="@{inputfile}" />
>         <arg value="@{stylesheet}" />
>         <arg line="docbook-schema.version=${docbook-schema.version}" />
>         <xslt-argset/>
>       </java>
>     </sequential>
>   </macrodef>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Yanel-usage mailing list
>Yanel-usage at wyona.com
>http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-usage
>  
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61



More information about the Yanel-usage mailing list