how to send value from redirect processor(this is one xpl)to xslt processor(this is there in another xpl

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to send value from redirect processor(this is one xpl)to xslt processor(this is there in another xpl

Laxmi Narayana-3
i am new for xforms .plz help me .
how to send value from redirect processor(this is one xpl)to xslt processor(this is there in another xpl). I am getting id value from view.this id value iwant to send to
list-records-action.xpl.(plz help me)
change-form.xpl:

 <p:processor name="oxf:xslt-2.0">
        <p:input name="data" href="#instance"/>
        <p:input name="config">
            <query xsl:version=" 2.0">  
                      <formname><xsl:value-of select="//seqno_tab"/></formname>
                        <formnameone><xsl:value-of select="//id"/></formnameone>
            </query>
        </p:input>
        <p:output name="abc" id="query"/>
    </p:processor>

                 <p:choose href="#query"> 
                           <p:when test="//formname = '/TestConfig2'">
                            <p:processor name="oxf:redirect">
                                  < p:input name="data">
                                          <redirect-url>
                                            <path-info>/TestConfig2</path-info>
                                         </redirect-url>
                                  </p:input>
  
                          </p:processor>
                          </p:when>
        <p:otherwise>   
                  <p:processor name="oxf:redirect">
                             <p:input name="data">
                                      <redirect-url>
                                           <path-info>/</path-info>
                                 </redirect-url>
                           </p:input>
  
              </p:processor>
               </p:otherwise>   
           </p:choose>

 

      i want to send that id(underlined)value to list-recods-action.xpl from redirect kprocessor:

list-recods-action.xpl :

<p:processor name="oxf:xslt-2.0">
        <p:input name="data" href="#instance"/>
        <p:input name="config">
           <value xsl:version=" 2.0">  
            I want to get id value here.
     </value>
        </p:input>
        <p:output name="data" id="query"/>
    </p:processor>
   <p:processor name="oxf:pipeline">
  <p:input name="config" href="list-records.xpl"/>
  <p:input name="response"  href="aggregate('result',#query)"/>
  <p:output name="data"  ref="data"/>
 </p:processor>

</p:config>
plz help me.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: how to send value from redirect processor(this is one xpl)to xslt processor(this is there in another xpl

Hank Ratzesberger
 
OK, let me try...
 
I presume you have reviewed the docs for the format the <redirect-url>
element takes:
 
 
Since the redirect-processor directs the browser (or server) to another
url, you will need a path within your page-flow.xml to handle the
request. 
 
Does page-flow.xml handle "/" and "/TestConfig2" with list-records-action.xpl?
That is the only way to reach your last xslt-2.0 statement.  (It is possible to
call that xpl file, but that is done by the <action> element of page-flow.xml)
 
But I think an issue here is that to pass on any information, you need to add
url parameters -- the <parameters> element within the <redirect-url>.  That
will pass them along with the url.  Then in the file list-records-action.xpl,
you can retrieve those parameters with request generator.  Then, you use
xslt to create the <config> element in your xslt-2.0 processor below. 
 
 
Regards,
Hank
 
Hank Ratzesberger
http://nees.ucsb.edu/
Institute for Crustal Studies
University of California, Santa Barbara
----- Original Message -----
Sent: Wednesday, August 08, 2007 1:00 AM
Subject: [ops-users] how to send value from redirect processor(this is one xpl)to xslt processor(this is there in another xpl

i am new for xforms .plz help me .
how to send value from redirect processor(this is one xpl)to xslt processor(this is there in another xpl). I am getting id value from view.this id value iwant to send to
list-records-action.xpl.(plz help me)
change-form.xpl:

 <p:processor name="oxf:xslt-2.0">
        <p:input name="data" href="#instance"/>
        <p:input name="config">
            <query xsl:version=" 2.0">  
                      <formname><xsl:value-of select="//seqno_tab"/></formname>
                        <formnameone><xsl:value-of select="//id"/></formnameone>
            </query>
        </p:input>
        <p:output name="abc" id="query"/>
    </p:processor>

                 <p:choose href="#query"> 
                           <p:when test="//formname = '/TestConfig2'">
                            <p:processor name="oxf:redirect">
                                  < p:input name="data">
                                          <redirect-url>
                                            <path-info>/TestConfig2</path-info>
                                         </redirect-url>
                                  </p:input>
  
                          </p:processor>
                          </p:when>
        <p:otherwise>   
                  <p:processor name="oxf:redirect">
                             <p:input name="data">
                                      <redirect-url>
                                           <path-info>/</path-info>
                                 </redirect-url>
                           </p:input>
  
              </p:processor>
               </p:otherwise>   
           </p:choose>

 

      i want to send that id(underlined)value to list-recods-action.xpl from redirect kprocessor:

list-recods-action.xpl :

<p:processor name="oxf:xslt-2.0">
        <p:input name="data" href="#instance"/>
        <p:input name="config">
           <value xsl:version=" 2.0">  
            I want to get id value here.
     </value>
        </p:input>
        <p:output name="data" id="query"/>
    </p:processor>
   <p:processor name="oxf:pipeline">
  <p:input name="config" href="list-records.xpl"/>
  <p:input name="response"  href="aggregate('result',#query)"/>
  <p:output name="data"  ref="data"/>
 </p:processor>

</p:config>
plz help me.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws