Image of Beginning Google Maps API 3
Image of Android Wireless Application Development
Image of Modern Operating Systems (3rd Edition)
Image of XSLT 2.0 and XPath 2.0 Programmer's Reference (Programmer to Programmer)

XSLT Variables in Attribute Match Predicates

I tripped over the issue of using a variable as a predicate in an attribute match again today. This has happened to me before and I should know better but it have been a while since I had to do any serious XSLT1 coding. I now mostly work with XSLT2. Since there is not much information on the Internet about this issue, I decided to explain the issue in this post. Consider the following simple XML document: <?xml version="1.0"?> <employees> <employee id="333"> <name>Ciara</name> </employee> <employee id="334"> <name>Christina</name> </employee> <employee id="335"> <name>Kenneth</name> </employee> <employee id="336"> <name>Robert</name> </employee> </employees> Suppose I want