|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] expand conditional variable in xsl:key match
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








