[xep-support] Problem with xinclude?

Thomas Christensen tchristensen at nordija.com
Wed Nov 26 05:09:47 PST 2008


Ok. Generating a complete all in one xml file will also improve the  
validation part of docbook 4.5+xincludes.
However - it works when I use XEP from within XMLEditor instead of the  
commmand line XEP!

The normal xincludes (ie. href actually points to a file) works in  
both places, and only the xpointer versions fails.

I'll try the preprocessor step option.

Thomas

On 26 Nov 2008, at 11:49, Dave Pawson wrote:

> 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

-------------------
(*) 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