cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin D'Allaird <kdalla...@vitria.com>
Subject RE: dynamic select clause in fp:read tag?
Date Thu, 06 Sep 2001 16:10:06 GMT
Thangadurai,

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

Kevin   	  


-----Original Message-----
From: Thangadurai [mailto:durai@siptech.co.in]
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message