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

Re: Simple newbie Q: literal as row title

Subject: Re: Simple newbie Q: literal as row title
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Tue, 10 Mar 2009 21:36:02 +0530
Re:  Simple newbie Q: literal as row title
I guess, you should be able to do:

<xsl:if test="position() = last()">
   <!-- output the "fixed literal" if want -->
</xsl:if>

the above technique detects that you are in the last iteration of the loop.

if you could post the input and the required output, we might be able
to give some specific solution.

On Tue, Mar 10, 2009 at 9:26 PM, Dick Penny <d_penny@xxxxxxx> wrote:
> As a newbie I have some XSLT working thanks to this group. I have moved to
a
> "named template" so that I can call template with different arguments - is
OK.
> But I cannot figure out how to get a "fixed literal" as title of final
summary
> row.
>
> *************************fragment
> B  B <!-- for each unique audit name -->
> B  B <xsl:for-each B select="Row[@AuditName and
> B  B  B  B  B  B  B  B generate-id(.)=generate-id(key('audits',
@AuditName))]">
> B  B  B  B <xsl:call-template name="one-row">
> B  B  B  B <xsl:with-param name="AuditN" select="@AuditName"/>
> B  B  B  B <xsl:with-param name="findings" select="key('audits',
@AuditName)"/>
> B  B  B  B </xsl:call-template>
> B  B  </xsl:for-each>
>
> B  B  <!-- for all audits -->
> B  B  <xsl:call-template name="one-row">
> B  B  B  B  <xsl:with-param name="AuditN" select="TOTAL"/>
> B  B  B  B  <xsl:with-param name="findings"
select="/dsQueryResponse/Rows/Row"/>
> B  B  B  B  </xsl:call-template>
> *************************
>
>
> Dick Penny



--
Regards,
Mukul Gandhi

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-2013 All Rights Reserved.