Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2010, 02:20 PM
Registered User
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Saxon 9.1.0.3 issue with <xsl:with-param>

I have the following instruction:

<xsl:call-template name="values">
<xsl:with-param name="type" select="'Average'"/>
</xsl:call-template>

<xsl:template name="values">
<xsl:param name="type"/>

<xsl:message><xsl:value-of select="$type"/></xsl:message>
...

</xsl:template>

However, the type value is not getting passed to the template. When I try to message out the type value, it is blank. Does Saxon 9.1.0.3 not support <xsl:with-param> or is there a known bug?

Thanks in advance for any help.
 
Old March 23rd, 2010, 02:31 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

There are no known issues in this area.

Please try to construct a repro (i.e. small working demo of the problem) and submit it to the saxon-help mailing list or forum if you still believe it's a Saxon problem. Alternatively, run the same code on another processor first - that will provide strong evidence one way or the other.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
 
Old March 23rd, 2010, 02:39 PM
Registered User
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It works when I run it using Saxon-EE, it is only failing with Saxon 9.1.0.3. I will submit to the saxon-help mailing list later today if I still believe it is a Saxon issue.

Thank you for you quick response.
 
Old March 23rd, 2010, 02:46 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Try it on 9.1.0.8 in case it's a bug fixed in a 9.1-series maintenance release.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
 
Old March 23rd, 2010, 03:03 PM
Registered User
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I will. Thank you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
<xsl:copy-of> with <xsl:element> learningxsl XSLT 8 February 5th, 2010 09:26 AM
embedded <xsl:element> into <xsl:with-param> petergoodman XSLT 2 July 9th, 2008 06:36 AM
Performance for <xsl:import> and <xsl:include> vikkiefd XSLT 2 April 16th, 2008 08:06 AM
<input> to Param or Variable bonekrusher XSLT 1 October 11th, 2006 06:00 PM
<xsl:choose> and <xsl:otherwise> problem djmarquette XSLT 4 January 21st, 2005 01:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.