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

Reply via email to