Closed GoogleCodeExporter closed 9 years ago
Thanks for the report! I think I see now. You try to fix the
value of a *stylesheet parameter*, while x:context/x:param has
been intended to set a *template parameter*. That is, if you
have the following template rule:
<xsl:template match="elem">
<xsl:param name="p"/>
...
then normally you can use the following to test it with an empty
matching element and the string 'value' bound to the parameter:
<t:context>
<t:param name="p" select="'value'"/>
<elem/>
</t:context>
This was not supported, but fixed in revision 178!
I think there is no way to set different values for global
parameters within the same test suite. That's definitely a
limitation, but I can't think of neither a good syntax to
represent that in the test suites, nor an obvious implementation
in XSLT.
Original comment by fgeorges
on 15 Sep 2010 at 7:05
Thank you for all the fixes, Florent!
Here's a comment by Jeni Tennison stating the same limitation:
<http://inasmuch.as/2008/06/09/why-use-more-that-xslt-for-testing-xslt/#comment-
3645>
Bernhard
Original comment by sbs....@gmail.com
on 17 Sep 2010 at 2:20
Original issue reported on code.google.com by
sbs....@gmail.com
on 15 Sep 2010 at 4:02Attachments: