On Wed, Jul 30, 2008 at 11:12 AM, Rob.Conde <[EMAIL PROTECTED]>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?
>
Yuck.  Two bugs in match patterns this week, and they've both been there
since day 1.

Yes, this is a bug.  Can you tell me if "attribute::name" works instead of
"@name"?


>
>
> FYI we found the following workaround match="Items/value//*/@name" which
> while not a general substitude, works for our particular case.

"Items/value/@name | Items/value//*/@name" is also a possible workaround.

Dave

Reply via email to