Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSL-FO relative position

From: plize@---------------.--- (--------)
To: 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 >&#x2022; </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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent