cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <>
Subject Howto FP taglib and XPath.
Date Tue, 17 Oct 2000 14:05:17 GMT
Dear all!

I need to load a node-set from XML file and the XPath to the node list is
generated from the request.
But I cannot find the correct expression to load it.
This is from my XSP file:
<!-- I am trying to load a list from the given range (skip+1, rangeEnd) -->
  <fp:resource id="subs">
   <fp:resource-node>/page/client/subscribers/subscriber[position() &gt;
<xsp:expr>skip</xsp:expr> and position() &lt;

Then, I need to place it here:

    <fp:read select="*" from="subs" as="node"/>

And this does not work.
I thank that the error is in the * sign - cause it corresponds to children
of the current node.
When I use '.' - current node - it displays onlu the first item in the list.
Other XPath expression does not work (following-sibling, self, etc).

I will be very thankful for any help.

  Konstantin Piroumian.

View raw message