Hi!
Thank you for you advice Matt,
> > Now I habe an XPathScript Stylesheet which I would presume to give the same
> > outtput:
> >
> > <%
> > $t->{'top'}{pre} = "A List\n\n";
> > $t->{'sub'}{pre} = findvalue('position()') . ") ";
>
> This is not executed per element. If you want that behaviour, you need to
> use testcode.
but I still seem to dumb. I tried this:
<%
$t->{'top'}{pre} = "A List\n\n";
$t->{'sub'}{testcode} = sub {
my ($node, $t) = @_;
my $pos = $node->findvalue('position()');
$t->{pre} = $pos . ") ";
};
print apply_templates();
%>
But it just gives an error. If I just print the value of $pos instead of
assigning it to $t->{pre} I just get NaN's. Thats confusing.
Puzzled
Olaf
--
Olaf P�schel, Softwaretechnik, OLMOS Workstations GmbH, Germany
Wolfenb�tteler Str. 31A, 38102 Braunschweig, Fon.: +49-531-22020-0 Fax: -99
OLMOS supports signed and/or encrypted mail. Grab my key at www.keyserver..net
"Unix *is* user friendly. It's just a bit picky about its friends"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]