comment appeler un template !
bonjour je cherche comment appeler un templates dans un endoit precis comme suit :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| <?xml version="1.0"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.stylusstudio.com/xquery">
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="default-page" page-height="11in" page-width="8.5in" margin-left="0.1in" margin-right="0.013in" margin-top="0.01in" margin-bottom="0.1in">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="default-page">
<fo:flow flow-name="xsl-region-body">
"je voudrais appeler le template dans cet endroit"
<fo:block>
<fo:block>
<fo:block>
<fo:inline font-size="16pt" font-weight="bold">
<xsl:text>Liste des clients :</xsl:text>
</fo:inline>
</fo:block>
<fo:block>
<xsl:text> </xsl:text>
</fo:block>
<fo:block>
<xsl:for-each select="/file/personne[NATURE=4]">
<xsl:value-of select="PERS_LIB"/>
</xsl:for-each>
<fo:block>
<xsl:text> </xsl:text>
</fo:block>
</fo:block>
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet> |
merci bien