Given the following XML:
BETHANY BEACH
BRIDGEVILLE
CAMDEN WYOMING
CHESWOLD
CLAYMONT
CLAYTON
DAGSBORO
DELAWARE CITY
DOVER
DOVER AFB
And the stylesheet:
$startLetter: \
$firstcity: \
key('cityName',$firstcity)[1]: \
key('cityName',$startLetter)[1]:
Using the built-in processor I get the following output:
$startLetter: \
$firstcity: b\
key('cityName',$firstcity)[1]: \
key('cityName',$startLetter)[1]:
I would have expected what I get when I use MSXML (either stand-alone or through the Scenario property page):
$startLetter: \
$firstcity: b\
key('cityName',$firstcity)[1]: BETHANY BEACH\
key('cityName',$startLetter)[1]:
The variable $firstcity is assigned a value but it isn't 'held' when used in the key() call using the built-in processor. MSXML returns, what I think is, the correct result.
-Mike
(I've attached the two files in case the formatting for this message got munged..)
cities(a).xml
Cities (XML)
keytest.xsl
KeyTest XSL file