My problem :
I am using using fp:read tag in my xsp to include some elements from my
(another) xml file.
The select attribute of my fp:read tag includes a request-parameter. So I need
to create a fp:read tag like
<fp:read select="../document[child::type='<request:get-parameter
name="type"/>']" from="repository" as="node"/>
But it throws
org.xml.sax.SAXParseException: The value of attribute "select" must not
contain the '<' character.
So I used the xsp:element and xsp:attribute tags to create my fp:read element,
like
<xsp:element name="fp:read">
<xsp:attribute
name="select">../document[child::type=<request:get-parameter
name='type'/>]</xsp:attribute>
<xsp:attribute name="from">repository</xsp:attribute>
<xsp:attribute name="as">node</xsp:attribute>
</xsp:element>
But my xsp page gives the fp:read tag with the value of my request parameter,
<fp:read as="node" from="repository"
select="../document[child::type=Internal]"
xmlns:fp="http://apache.org/cocoon/XSP/FP/1.0">
</fp:read>
I need the result of fp:read , not the fp:read tag
I am struggling to solve this problem. Can u help me to solve this.
Christopher Painter-Wakefield wrote:
> This approach is strongly discouraged. If you try to do it this way, your
> pages will take a long time to load, every time, because your second XSP
> program will have to be recompiled every single time. So, even if you can
> make it work, you won't *want* to.
>
> Is there some reason you are trying to do it this way? What is it you are
> trying to accomplish? Perhaps we can suggest a better approach.
>
> -Christopher
>
> Please respond to [EMAIL PROTECTED]
>
> To: cocoon-users <[EMAIL PROTECTED]>
> cc:
>
> Subject: Dynamic XSP
>
> Hi ,
>
> I am using cocoon 1.8.2,
> My xsp page receives an request and it produces an another xsp page,
> i.e. my logic is
> request --->xsp1-->xsl-1--->xsp2-->xsl-2-->html-->response
>
> I have done xsp1 and xsl-1 and i got xsp2 as a response.
> I need to process the result once again.
> How can i give the instruction to cocoon for that..
> Any of you have experience like this?
> 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]>