Declare
<xsl:key name="customerId-key" match="Employee" use="CustomerId"/>
as a child of xsl:stylesheet. Then you can locate Employee "12345" using
key('customerId-key', '12345')
It seems a bit odd for employees to have a customer number, but the world moves in strange ways....
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|