This is the code for indentation (That does NOT work)
How can I print the value of ancestors for debugging??
<xsl:template match="itsimp_new">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block >• </fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block space-after="5pt" >
<!-- here Im trying to
increase indentation for sub-lists -->
<xsl:attribute
name="start-indent">
<xsl:variable
name="ancestors">
<xsl:choose>
<xsl:when
test="count(liste_new)">
<xsl:value-of
select="1 +
count(ancestor::liste_new) *
1.25"/>
</xsl:when>
<xsl
therwise>
<xsl:text>2</xsl:text>
</xsl
therwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of
select="concat($ancestors, 'cm')"/>
</xsl:attribute>
<xsl:apply-templates
select="*|text()"/>
<!-- How to print the value of
ancestor?? -->
<xsl:value-of select="$ancestors"/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:template>