This is the code for indentation (That does NOT work)
How can I print the value of ancestors for debugging??
<xsl:template match="itsimp_n ew">
<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:attribut e
name="start-indent">
<xsl:variable
name="ancestors ">
<xsl:choose>
<xsl:when
test="count(lis te_new)">
<xsl:value-of
select="1 +
count(ancestor: :liste_new) *
1.25"/>
</xsl:when>
<xsl:otherwis e>
<xsl:text>2</xsl:text>
</xsl:otherwise>
</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="$ancest ors"/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:template>
pl***@letsdotha tagain.com (Caroline) wrote in message news:<da******* *************** **@posting.goog le.com>...
pl***@letsdotha tagain.com (Caroline) wrote in message news:<da******* *************** ****@posting.go ogle.com>... Using XSL-FO, how can I specify a margin, or identation, with respect
to a block's containter, and not an absolute path on the PDF file?
One example would be a nested list
I have another problem:
1 - I need to put a picture whose path is found inside the XML (as a
property)
2 - Part of the path is found in the XML, the prefix being fixed, I
need to define it and concatenate the 2 parts.
I also need to write javascript and include a .js file
Thank you for all the help