cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guy Pirotsky <g...@mercury.co.il>
Subject Dom elements as function Arguments in XSP file
Date Wed, 08 Mar 2000 21:14:29 GMT
How Can I pass DOM Elements to the functions in the XSP file
I have the following files

<xsp:page ...
...
<page>
   <title>Report</title>
  <util:report>
    <report_input>
     <input1/>
     ..
     <inputn/>
   </report_input>
  </util:report>



  <util:report>
    <report_input>
     <input1/>
     ...
     <inputn/>
   </report_input>
  </util:report>

</page>

</xsp:page>

How can I  get the <report_input> tag as String or as Element in the
Lib.xsl.xsp file
I want to get the element as input of the function
I tried the following:

<xsl:stylesheet ...
...
<xsl:template match="util:report">
	Hello
 <xsl:copy-of select="report_input"/>
<xsp:logic>
    {
      User user = (User)session.getValue("User");
      <xsp:content>
         <xsp:expr>
            user.execReport(xspCurrentNode , request, document)
          </xsp:expr>     
      </xsp:content>
}
    </xsp:logic>  
  </xsl:template>

</xsl:stylesheet>

but xspCurrentNode holds  <page> element instead if of < report_input > or
at least <util:report>

Mime
View raw message