Subject: Re: Predicate not allowed on root matching template match pattern
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 26 Aug 2005 17:23:29 +0100
|
> David, I'm using xslt2 should it be allowed then?
I only said xslt2 was your friend, not that it would help you...
Actually although the expression syntax is loosened up (and patterns
allow variables) you still can't do /[ in patterns, so back to the xlst1
way:
<xsl:template match="/">
<xsl:choose>
<xsl:when test="1=1">a</xsl:when>
<xsl:when test="1=2">b</xsl:when>
</xsl:choose>
</xsl:template>
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
________________________________________________________________________
|