OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: personalize xsl docbook


Hi,

I want to use docbook to generate a fo doc and convert it in pdf with XEP.

In my documents I have differents chapters,
chapter have attibute ("type") which is define
if it will be on one or two columns;

I not arrived to convert my xml in fo with this particularity,
here you cans see my xsl :


<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">

<xsl:import 
href="/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl"/>

<xsl:param name="paper.type" select="'A4'"/>

<xsl:param name="column.count.titlepage" select="2"/>
<xsl:param name="column.count.body" select="2"/>

<xsl:template match="chapter">

<xsl:variable name='var1' select='@type'/>

<xsl:choose>
<xsl:when test='$var1="2"'>
 <xsl:param name="column.count.body" select="2"/>
</xsl:when>
<xsl:when test='$var1="1"'>
 <xsl:param name="column.count.body" select="1"/>
</xsl:when>
</xsl:choose>

</xsl:template>

</xsl:stylesheet>

And here a xml example :

....
<chapter type=1>
.....
<!-- one column page -->
.....
</chapter>
.....

....
<chapter type=2>
.....
<!-- two columns page -->
.....
</chapter>
.....

....
<chapter type=1>
.....
<!-- one column page -->
.....
</chapter>
.....

This not work :(
if you have an idea ?

Thanks for your help.

-- 
Brice Rouanet
I.N.S.A.  Centre de Ressources Informatiques
Complexe Scientifique 135 Avenue de Rangueil
31077 Toulouse Cedex4 (France)  tel 0561559374



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]