Subject: Re: XSL Sort and Xalan From: "Bryce Wells" <bryce@xxxxxxxxxxxxxxxx> Date: Thu, 3 Aug 2000 14:36:56 -0500 |
> Try <xsl:sort order="ascending" select="{$item}"/> > (note curly brackets.) Sorry, should have added that - I have tried that and this is the error I was receiving: XSL Error: pattern = '{$item}' Extra illegal tokens: '$', 'item}', style tree node: org.apache.xalan.xslt.ElemSort@1af6f6 XSL Error: Could not parse f:/server/apache/htdocs/schedule/Schedule.xsl document!, Location file:/f:/server/apache/htdocs/schedule/PadScheduleMain.xsl, line 224, offset 61 XSL Error: SAX Exception, Location file:/f:/server/apache/htdocs/schedule/Schedule.xsl, line 224, offset 61 org.apache.xalan.xslt.XSLProcessorException: pattern = '{$item}' Extra illegal tokens: '$', 'item}' at java.lang.Throwable.<init>(Compiled Code) at java.lang.Exception.<init>(Compiled Code) . . . etc., etc. ----- Original Message ----- From: Don Bruey <dbruey@xxxxxxxxxxxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxx> Sent: Thursday, August 03, 2000 12:36 PM Subject: RE: XSL Sort and Xalan > Try <xsl:sort order="ascending" select="{$item}"/> > (note curly brackets.) > > > Don > > > > -----Original Message----- > From: Bryce Wells [mailto:bryce@xxxxxxxxxxxxxxxx] > Sent: Thursday, August 03, 2000 1:13 PM > To: xsl-list@xxxxxxxxxxxxxxxx > Subject: XSL Sort and Xalan > > > >From a previous post (not sure when), I thought I read that this was a bug, > but can't verify and the Xalan bug database is down. > > I am generating a table in HTML from dynamic XML with 4 columns, any of > which I'd like the end-user to be able to sort. I have a parameter set in my > stylesheet <xsl:param name="item"/> that I'm trying to use to set the > column that should be sorted, but it is not working. No errors, just not > working. > > This is how I am passing to the sort function: > > <xsl:sort order="ascending" select="$item"/> > > My question is - am I doing this incorrectly? or, can you not pass > parameters to the xsl:sort element in Xalan? > > Any help would be greatly appreciated. > > Thanks, > Bryce > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > 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 Sort and Xalan, Don Bruey | Thread | RE: XSL Sort and Xalan, Don Bruey |
Re: Javascript : from xsl to xml, Robert Koberg | Date | Re: template matches more than once, Jeni Tennison |
Month |