Try using double quotes in your first example: @ids="fname". That has worked for me.
Regards -----Original Message----- From: ArkBasel [mailto:[EMAIL PROTECTED] Sent: Sunday, July 01, 2007 12:02 PM To: xalan-c-users@xml.apache.org Subject: Problem in XPath with attributes Hi, (using latest version of xerces and xalan) I converted a Xerces document to Xalan without any problems. I also individually checked whether the converted Xalan document has all the nodes and attributes and it has. Then I wanted to do a XPath search with Xalan's select nodes. I am able to search the tags for example "//name/address" fine but if I search for attributes "//[EMAIL PROTECTED]'fname']" or "//[EMAIL PROTECTED]" for some reason non of the XPath expressions with attributes work and returns only NULL. Is my XPath expression is bad or am I missing anything? <name ids='fname'> <address> </address> </name> Thanks -AB