![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] matching template with arguments. [Thread Next] Re: [xsl] matching template with arguments.To: Date: 11/1/2005 11:52:00 PM 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
________________________________________________________________________ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
