On Tue, 5 Feb 2002, jc153 wrote:
> I'm trying to implement an XPathScript stylesheet using the following:
>
> <%
> for my $deposits (findnodes("/accounts/deposit")) {
> print "<p>", $deposits->findvalue("position()"), ......etc
>
> The aim is to print the deposit number at the start of each paragraph,
> but with the code above no number gets returned. What is the best way to
> do this sort of thing?
Use a counter:
<%
my $i = 1;
for ... {
print ...
$i++;
}
%>
--
<!-- Matt -->
<:->Get a smart net</:->
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]