Thanks David for the reply and workaround - always good to know you're not crazy/dumb.
Rob -----Original Message----- From: David Bertoni [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2008 7:56 PM To: xalan-c-users@xml.apache.org Subject: Re: XPath parsing bug? Rob.Conde wrote: > I'm using Xalan 1.9 > > When compiling an xsl containing the following: > > <xsl:template match="Items/value//@name"> > <!--some stuff here --> > </xsl:template> > > I get the following error: > > "A node test was expected.pattern = 'Items/value//@name' Remaining tokens > are: ('@' 'name') > > This works with the .NET xpath processor however. Isn't this valid xpath? > > FYI we found the following workaround match="Items/value//*/@name" which > while not a general substitude, works for our particular case. Yes, this is a bug. However, you can use the attribute axis as a workaround: Items/value//attribute::name I've created a Jira issue and I'll be attaching a patch in a bit: https://issues.apache.org/jira/browse/XALANC-680 Dave