Subject: RE: [xsl] displaying values from <xsp:logic> From: "Matt MacDougall" <matt@xxxxxxxxxxxxxxx> Date: Fri, 27 Sep 2002 18:56:00 -0500 |
My apologies for the post. Thanks for pointing me to the right place ;-) -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Joerg Heinicke Sent: Friday, September 27, 2002 6:40 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] displaying values from <xsp:logic> Hello Matt, isn't this question more related to Cocoon? What has it to do with XSL? The XSP/Java-code is only wrapped in a <xsl:template/>. Try to ask your question on Cocoon user mailing list: http://xml.apache.org/cocoon/mail-lists.html. What I can say so far: I might be wrong, but it seems you want to create an XSL or an XSP dynamically. So you have to use a generator for interpreting the XSP/Java stuff and a transformer to transform the XML. In which order? That's dependent on what you want to create dynamically. If you post your question to Cocoon user mailing list, you will really get better help. You should post a snippet from your sitemap or explain better, what you really want to do. Regards, Joerg Matt MacDougall wrote: > Hello, > > I'm having a problem getting the results of a Java function wrapped in > <xsp:logic> tags to display on my page. > > I have the following in an xsl file: > > <xsl:template match="prevnext"> > <xsp:logic> > String next_move_string = "1"; > String prev_move_string = "-1"; > > String uri = request.getRequestURI(); > > <xsp-request:set-paramter > name="move">next_move_string</xsp-request:set-paramter>; > String nextquery = request.getQueryString(); > > <xsp-request:set-paramter > name="move">prev_move_string</xsp-request:set-paramter>; > String prevquery = request.getQueryString(); > > String nexturl = uri + nextquery; > String prevurl = uri + prevquery; > nexturl = "Next"; > // just for testing > prevurl = "Prev"; > // just for testing > </xsp:logic> > > <prevresult> > <xsp:expr>prevurl</xsp:expr> > </prevresult> > --- --- > <nextresult> > <xsp:expr>nexturl</xsp:expr> > </nextresult> > </xsl:template> > > > ################### > > there's also an earlier call in this xsl file to <xsl:apply-templates > select="prevnext"/> inside my results template. This is compiling fine but > I only receive an empty output for the <prevresult> and <nextresult> tags. > I've tried several things including <xsp:value-of ...> but I haven't had any > luck. Does anyone catch any glaring errors here? > > Thanks much, > > -Matt XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] displaying values from <x, Joerg Heinicke | Thread | RE: [xsl] find first occurrence of , John Pallister |
Re: [xsl] displaying values from <x, Joerg Heinicke | Date | RE: [xsl] Problems rendering nbsp e, Michael Kay |
Month |