← Prev in month ← Prev in thread

RE: [docbook] TOC / document function

From
Mauritz Jeanson <>
Date
2007-11-20T18:40:13+00:00
ID
001901c82ba4$be503ea0$71ea1a51@D7MZ171J
Thread
RE: [docbook] TOC / document function
> -----Original Message-----
> From: Joe Hines 
> 
> I'm trying to import a docbook chapter from an external 
> docbook formatted XML file and am having some trouble with 
> the table of contents.
>  
> I have the following template in my customization layer:
>  
> <xsl:template match="chapter[@file]">
>   <xsl:variable name="chapterfile" select="document(@file)"/>
>   <xsl:apply-templates select="$chapterfile//*"/>
>  </xsl:template>
>  
> And in my XML document have the following line:
>  
> <chapter file="testdoc.xml"/>


[moving this over to the docbook-apps list where tool/stylesheet issues are
discussed]


I realize that this is not an answer to your question, but unless you have a
very good reason for doing the inclusion in XSLT, I would suggest using
XInclude instead.

The details are here: http://www.sagehill.net/docbookxsl/ModularDoc.html.

/MJ
← Prev in month ← Prev in thread