[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xsl:key may not contain references to variables

Subject: xsl:key may not contain references to variables
From: Xiaocun Xu <xiaocunxu@xxxxxxxxx>
Date: Mon, 17 Feb 2003 14:17:36 -0800 (PST)
xsl not contain
Hi,

  I thought this should have been a popular question,
but somehow I did not find it in the archive.
  I am in the process of upgrading from Saxon 6.0.2 to
the latest 6.5.2.  While doing regression testing, I
found compile errors "xsl:key may not contain
references to variables".  Guess the newer version is
more tightly following the specs.
  I can expand the variables so that it no longer use
variables in both match and use attributes, but it
will make the code less-readable and more difficult to
maintain.  Anyone had similar problem and had a more
elegant solution?
  Attached are some of the examples of the variables
and xsl:key currently in my code.

Thanks,
Xiaocun

<!-- Find all lineitems, key on
string(LineItemLotName) to handle 0 or 1
LineItemLotName -->
<xsl:variable name="LineItemLotColumn"
select="$LineItemHeader/cell[.=saxon:n2v($mapRFQ,'LineItemLotName')]/@column"/>
<xsl:key name="lineitemLotsKey" match="//row[@row &gt;
$LineItemHeaderRow and @row &lt; $BidHeaderRow]"
use="string(cell[@column=$LineItemLotColumn])"/>


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.