This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] WEBSITE: patch to makefile-dep.xsl


Hi,

i use a lot of XInclude building websites with WEBSITE DTD because 
common text elements are reused. To get the Makefile rebuild my pages 
if something has changed inside the included files i modified 
makefile-dep.xsl in the website xsl distribution

Of course you have to use '--xinclude' command line option in your 
Makefile to use this modification.

Maybe my modification is of any use for someone (maybe even for the 
distributuion)

kind regards,
janning

Website version: 2.4.1 (website-2.4.1.tar.gz)

diff makefile-dep.xsl /home/janning/xsl/makefile-dep.xsl
39a40
>   <xsl:call-template name="check-includes"/>
54a56
>     <xsl:call-template name="check-includes"/>
123a126,140
> <xsl:template name="check-includes">
>   <xsl:if test="document(@page)//@xml:base">
>     <xsl:value-of select="@page"/>
>     <xsl:text>: </xsl:text>
>     <xsl:for-each select="document(@page)//@xml:base">
>       <xsl:value-of select="."/>
>       <xsl:text> </xsl:text>
>     </xsl:for-each>
>     <xsl:text>&#10;</xsl:text>
>     <xsl:text>&#9;</xsl:text>
>     <xsl:text>touch </xsl:text>
>     <xsl:value-of select="@page"/>
>     <xsl:text>&#10;</xsl:text>
>   </xsl:if>
> </xsl:template>



---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]