[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:for or xsl:repeat

Subject: Re: xsl:for or xsl:repeat
From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx>
Date: Wed, 24 May 2006 10:28:36 -0500
fo leader space
On 5/24/06, Mark Williams <mark@xxxxxxxxxxxxxxxxx> wrote:
Hi Jon,

What I am trying to do is very simple.


You've hit a case where it's not a grouping problem or the like. There's probably a simpler way to do it, but worse case scenario you can do a recursive template:

<xsl:call-template name="printSigBlock">
<xsl:with-param name="countOfSigs" select="noofclients" />
</xsl:call-template>

<xsl:template name="printSigBlock">
<xsl:with-param name="countOfSigs" />
<fo:block font-family="Helvetica" font-size="12pt"
white-space-collapse="false" space-after="0.05pt"><fo:leader
leader-pattern="space"/></fo:block></fo:block><fo:block
font-family="Helvetica" font-size="12pt" white-space-collapse="false"
space-after="0.05pt"><fo:leader
leader-pattern="space"/></fo:block><fo:block font-family="Helvetica"
font-size="12pt"
space-after="0.05pt">Signature_____________________<fo:leader
leader-length="16pt"/><fo:leader
leader-length="36pt"/>Date________________ </fo:block></xsl:for****>
<xsl:if test="$countOfSigs -1 > 0">
<xsl:call-template name="printSigBlock" select="$countOfSigs -1" />
</xsl:template>

That's the best I can come up with off the top of my head.  There
might be a better way to do it in XSLT 2.0.  There also might be some
other workarounds.

Jon Gorman

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.