Subject: Re: [xsl] matching template with arguments. From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 1 Nov 2005 23:51:32 GMT |
you can't use variables in match patterns. This restriction is removed in 2.0 sp you could switch to saxon8. However you can always move the variable to an xsl:choose or if instead of <xsl:template match="Product[not(starts-with(@code, $typ))]" /> do <xsl:template match="Product"> <xsl:if test="starts-with(@code, $typ))]"> <xsl:call-template name="id"/> </xsl:if> </xsl:template> <xsl:template match="@*|node()" name="id"> ... 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] matching template with argume, Charles Ohana | Thread | RE: [xsl] matching template with ar, Michael Kay |
Re: [xsl] removing nodes according , drkm | Date | Re: [xsl] Processing IDREFS attribu, Dan Vint |
Month |