Re: [xsl] Predicate not allowed on root matching template match pattern

Subject: Re: [xsl] Predicate not allowed on root matching template match pattern
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 26 Aug 2005 17:10:15 +0100
> Is it wrong to use multiple root matching templates in this way?

yes. in XPath 1 / (like .) are defined (probably by mistake:-)
as _complete steps_ so you can't have /[] or .[].

This is true both in Xpath expressions and in xslt match patterns.

> <xsl:template match="/[$testing]">

is doubly wrong as you can't have variables in xslt1 patterns either.

xslt2 is your friend:-)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread