Subject: Re: [xsl] Paging and Sorting From: "Katie McNally" <kmcnally9@xxxxxxxxxxx> Date: Fri, 19 Oct 2001 15:52:36 -0500 |
Somehow, the template which outputs the information about a single loan is being executed via another path than the one that wraps a table around them. This might be due to the built-in template which matches any element and does <apply-templates/>.
I added explicit templates to shadow this built-in one for some of my document's elements.
Another approach would be to use a mode for the path from your table to your loan template and have another template for loan (without the mode) that does nothing.
<xsl:param name="column"> </xsl:param> <xsl:param name="lowerLimit" select="1"> </xsl:param> <xsl:param name="upperLimit" select="10"> </xsl:param>
<xsl:variable name="counter"> <xsl:value-of select="count(ReturnResultSet/LoanSearchSet/Loan)"/> </xsl:variable>
</tr> </table> </xsl:template>
<tr> <td> <xsl:variable name="loanid"> <xsl:value-of select="LoanId"/> </xsl:variable> <a href="/loans/LoanSummary.jsp?{$loanid}"> <xsl:value-of select="LoanId"/> </a> </td>
<td> <xsl:for-each select="LoanBorrowerSet/Borrower"> <xsl:if test="Rank='1'"> <xsl:value-of select="LastName"/> </xsl:if> </xsl:for-each> </td>
<ReturnResultSet> <LoanSearchSet> <Loan> <LoanId>123</LoanId> <LoanBorrowerSet> <Borrower> <LastName>Smith</LastName> </Borrower> </LoanBorrowerSet> </Loan> <Loan> <LoanId>456</LoanId> <LoanBorrowerSet> <Borrower> <LastName>Jones</LastName> </Borrower> </LoanBorrowerSet> </Loan> <Loan> <LoanId>789</LoanId> <LoanBorrowerSet> <Borrower> <LastName>Stills</LastName> </Borrower> </LoanBorrowerSet> </Loan> ... </LoanSearchSet> </ReturnResultSet>
From: Mark Nahabedian <naha@xxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Paging and Sorting Date: Thu, 18 Oct 2001 17:25:29 -0400
Katie McNally writes: [...] > The data is being displayed above the table as: > 9823410-Mar-2001 New 10-Nov-1999 Max Lyons 23492 Jen Masters L 1 Josh > Masters P 2 300 S. State St. 140000.0 TRUE 7.10 13-Aug-2000
Somehow, the template which outputs the information about a single loan is being executed via another path than the one that wraps a table around them. This might be due to the built-in template which matches any element and does <apply-templates/>.
I had this problem with one of my stylesheets the other day. I added explicit templates to shadow this built-in one for some of my document's elements.
Another approach would be to use a mode for the path from your table to your loan template and have another template for loan (without the mode) that does nothing.
The idea is to make sure that your loan elements are only processed within the table you're generating and not any other way.
Sorry I can't give more detail, I don't have your previous messages handy.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Paging and Sorting, Mark Nahabedian | Thread | Re: [xsl] Paging and Sorting, Jeni Tennison |
[xsl] Writing to file vs. storing i, mjyoungblut | Date | Re: [xsl] Adding DOCTYPE to xml out, Terje Norderhaug |
Month |