Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XSL-FO relative position [Thread Next] Re: XSL-FO relative positionTo: NULL Date: 10/4/2004 8:01:00 AM 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:otherwise>
<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="$ancestors"/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:template>
plize@l... (Caroline) wrote in message news:<da07e661.0409272220.d46142@p...>...
> plize@l... (Caroline) wrote in message news:<da07e661.0409240627.6d6658b6@p...>...
> > 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
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
