|
Subject: Re: [xsl] expand conditional variable in xsl:key match From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 13 Jun 2003 17:14:57 -0400 |
I hope that helps, anyhow, Wendell
Hi,
I am using Saxon6.5.2. I have a variable InstructionHeaderRow declared to mark the end of the document as below: <xsl:variable name="InstructionHeaderRow"> <xsl:choose> <xsl:when test="$InstructionHeader/@row > 0"> <xsl:value-of select="$InstructionHeader/@row"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="//row[last()]/@row + 1"/> </xsl:otherwise> </xsl:choose> </xsl:variable>
I need to create a xsl:key to apply to all rows between $QuestionHeaderRow and $InstructionHeaderRow: <xsl:key name="QuestionKey" match="//row[@row > $QuestionHeaderRow and @row < $InstructionHeaderRow]" use="string(cell[@column=$QuestionnaireColumn])"/>
Since XSLT1.0 does not allow variables in xsl:key match and use, how best to exand the conditional variable $InstructionHeaderRow so I can use it in xsl:key match above?
Any suggestion would be very much appreciated.
Xiaocun
__________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
___&&__&_&___&_&__&&&__&_&__&__&&____&&_&___&__&_&&_____&__&__&&_____&_&&_ "Thus I make my own use of the telegraph, without consulting the directors, like the sparrows, which I perceive use it extensively for a perch." -- Thoreau
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] expand conditional variable i, Xiaocun Xu | Thread | Re: [xsl] expand conditional variab, Xiaocun Xu |
| RE: [xsl] href problem...using CDAT, Wendell Piez | Date | RE: [xsl] how to view html not xml/, Robert Koberg |
| Month |