Thangadurai,

try
<fp:read select="../document[child::type='<request:get-parameter
name="type"/>']" from="repository" as="node"/>

Kevin             


-----Original Message-----
From: Thangadurai [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 7:56 AM
To: cocoon-users
Subject: dynamic select clause in fp:read tag?


Hi All,
In my xsp page,  I am using the fp:read tag to read an element  from an
input (xml) file.

My input xml file has the following elements
<root>
        <document>
                        <type>internal</type>
        </document>
        <docuement>
                        <type>external</type>
        </docuement>
        .. and so on..
</root>

I am using the fp:read tag like,,

<fp:read select="../document" from="repository" as="node"/>

it will include all the document elements into my dynamic page.. I don't
want all the elements.
I need only a particular elements which are satisfying my search
criteria ..
I have received a request parameter "type", and I want to use the value
in my select clause..
How can we add a dynamic select clause in fp:read tag? or is there any
other way to solve this problem?
If you give a reply , it will very usefull to me...
expecting reply,
Thangadurai



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to