xsl-list
[Top] [All Lists]

Re: Predicate not allowed on root matching template match pattern

2005-08-26 09:23:29

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
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--