RE: [docbook-apps] Modular DocBook still not working

From
Eric Johnson <>
Date
2009-04-03T16:27:45+00:00
ID
Thread
RE: [docbook-apps] Modular DocBook still not working
Betty,
Here are valid versions of the original source files and a PDF I
generated with them.
If you are still having problems getting this to build there could be an
issue with the xslt processor set up. 
We use saxon, driven by Ant.
Here is how we set up the call to the xslt processor:
		<java classname="com.icl.saxon.StyleSheet"
classpathref="xslt-classpath" dir="." fork="true" maxmemory="512M">
			<sysproperty
key="javax.xml.parsers.DocumentBuilderFactory"
value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl" />
			<sysproperty
key="javax.xml.parsers.SAXParserFactory"
value="org.apache.xerces.jaxp.SAXParserFactoryImpl" />
			<sysproperty
key="org.apache.xerces.xni.parser.XMLParserConfiguration"
value="org.apache.xerces.parsers.XIncludeParserConfiguration" />
			<arg value="-x" />
			<arg
value="org.apache.xml.resolver.tools.ResolvingXMLReader" />
			<arg value="-y" />
			<arg
value="org.apache.xml.resolver.tools.ResolvingXMLReader" />
			<arg value="-r" />
			<arg
value="org.apache.xml.resolver.tools.CatalogResolver" />
			<arg value="-o" />
			<arg value="output/__temp.fo" />
			<arg value="${docbook.in}" />
			<arg
value="${env.DBCK_HOME}/custom-ns/${BOOKLIB}-pdf.xsl" />
			<arg
value="target.database.document=${PDFSITEMAP}" />
			<arg value="current.docid=${docbook.docid}" />
		</java>

Hope that helps.
Cheers,
Eric

-----Original Message-----
From: Betty Ing [mailto:] 
Sent: Friday, April 03, 2009 12:00 PM
To: 
Cc: ; Betty Ing
Subject: Re: [docbook-apps] Modular DocBook still not working

Hello Tom,

Thanks for your code. I have seen similar examples to yours, however I
wanted to work with DocBook 5.0  The reference to V4.5 indicates that
you are using not using V5.0  However, there are still references to
namespaces, which I don't quite understand since namespaces started
with V5.0, if I understand correctly.

How would I modify your code for V5.0? Also, could you please provide
the sample code for command1.xml?

Thank you in advance.

Betty


On Fri, 3 Apr 2009 09:49:52 -0500
  wrote:
> Here is an example that works for me
> --------------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
> "..\docbook\docbookx.dtd">
> <book id="book">
>   <title>Command Reference</title>
>   <reference>
>     <title>Commands</title>
>     <xi:include href="command1.xml"
>      xmlns:xi="http://www.w3.org/2001/XInclude" />
>     <xi:include href="command2.xml"
>      xmlns:xi="http://www.w3.org/2001/XInclude" />
>       </reference>
>   </book>
> 
> 
>
                                                                      
>     
>              Tom_Towle@bcbsil.
>                                             
>              com
>                                                           
>
                                                                      
>  To 
>              04/03/2009 09:42          "Betty Ing"
> <>     
>              AM
>                                                         cc 
>
                                       
>   
>
 
Subject
> 
>                                        Re: [docbook-apps] Modular
> DocBook  
>                                        still not working
>                   
>
                                                                      
>     
>
                                                                      
>     
>
                                                                      
>     
>
                                                                      
>     
>
                                                                      
>     
>
                                                                      
>     
> 
> 
> 
> 
> I have had weird errors that were resolved by changing the date in
> the
> namespace
> 
> Element include in namespace 'http://www.w3.org/2003/XInclude'
> why this works or how I dunno but it happens when I move from one
> laptop to
> a desktop machine  - all in eclipse environment with a mirrored bill.
> 
> 
> 
> 
>              "Betty Ing"
>              <[email protected]
>              a>
>                                                         To
>
                                       
>              04/03/2009 09:28
>                                           cc
>              AM
>
 
Subject
>                                        [docbook-apps] Modular DocBook
>                                        still not working
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Thanks to Remko, Camille, and Thomas for your suggestions. I have
> since
> modified SectionA and SectionB accordinly; Chapter is still the same
> as
> before.
> 
> I am still getting the following errors:
> 
> ------
> 
> Element include in namespace 'http://www.w3.org/2001/XInclude'
> encountered in chapter, but no template matches.
> 
> Element include in namespace 'http://www.w3.org/2001/XInclude'
> encountered in chapter, but no template matches.
> 
> Writing index.html for chapter
> 
> -------
> 
> What else am I still missing? Suggestions are welcome.
> 
> Betty
> 
> [attachment "Chapter.xml" deleted by Tom Towle/IL/HCSC] [attachment
> "SectionA.xml" deleted by Tom Towle/IL/HCSC] [attachment
> "SectionB.xml"
> deleted by Tom Towle/IL/HCSC]
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail:
> 
> 
> 
> 
> **********
> 
> The information contained in this communication is confidential,
> private,
> proprietary, or otherwise privileged and is intended only for the use
> of
> the addressee.  Unauthorized use, disclosure, distribution or copying
> is
> strictly prohibited and may be unlawful.  If you have received this
> communication in error, please notify the sender immediately at
> (312)653-6000 in Illinois; (800)835-8699 in New Mexico; (918)560-3500
> in
> Oklahoma; or (972)766-6900 in Texas.
> 
> **********
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail:
> 
> 
> 
> 
> 
> 
> 
> **********
> 
> The information contained in this communication is confidential,
> private, proprietary, or otherwise privileged and is intended only
> for the use of the addressee.  Unauthorized use, disclosure,
> distribution or copying is strictly prohibited and may be unlawful.
>  If you have received this communication in error, please notify the
> sender immediately at (312)653-6000 in Illinois; (800)835-8699 in New
> Mexico; (918)560-3500 in Oklahoma; or (972)766-6900 in Texas.
> 
> **********
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: 
For additional commands, e-mail: