[xep-support] Problem with xinclude?

Dave Pawson dave.pawson at gmail.com
Wed Nov 26 02:49:50 PST 2008


2008/11/26 Thomas Christensen <tchristensen at nordija.com>:

> Should I just go for docbook 5.0? Does that remove the pain with using
> xincludes with dtds (no validation)?
> Thomas

It won't help.
You need to process your xIncludes prior to further processing.
I might call it a 'pre-processing' step? Almost part of the parser.


I use ant with the step

 <target name="xinclude" >
    <echo>Expand Xincludes </echo>
    <exec executable="/usr/bin/xmllint" failonerror='true'>
      <arg value="-o"/>
      <arg value="tmp.xml"/>
      <arg value="--xinclude"/>
      <arg value="${main.infile}"/>
    </exec>
  </target>

or from the command line
$xmllint -o tmp.xml --xinclude Yourfile.xml


HTH



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list