xsl-list
[Top] [All Lists]

Re: matching template with arguments.

2005-11-01 16:51:32

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
________________________________________________________________________

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>