Issue 66 in xspec: Cannot test a named template with a particular context

6 views
Skip to first unread message

xs...@googlecode.com

unread,
Feb 28, 2014, 7:56:15 AM2/28/14
to xspe...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 66 by sha...@intelliarts.com: Cannot test a named template with a
particular context
http://code.google.com/p/xspec/issues/detail?id=66

The source XSLT:

<xsl:template name="copy-content">
<xsl:copy-of select="."/>
</xsl:template>

The scenario:

<x:scenario>
<x:context select="//p">
<sec>
<p>text</p>
</sec>
</x:context>

<x:call template="copy-content"/>

<x:expect>
<p>text</p>
</x:expect>
</x:scenario>

The expected output is:
<p>text</p>

But the error with the following message is thrown: "Variable $context has
not been declared". When I look at the generated XSLT I find that the
$context variable is generated in the default namespace, while it should be
$impl:context:

<xsl:variable name="impl:context" select="$impl:context-doc/(//p)"/>

<xsl:for-each select="$context">
<xsl:call-template name="copy-content"/>
</xsl:for-each>

The version of the product is: XSpec 0.4.0 Release Candidate 1.
The issue is not environment-dependent.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

xs...@googlecode.com

unread,
Sep 2, 2014, 2:08:36 AM9/2/14
to xspe...@googlegroups.com

Comment #1 on issue 66 by raducor...@gmail.com: Cannot test a named
template with a particular context
https://code.google.com/p/xspec/issues/detail?id=66

+1, one of our users also stumbled upon this problem.
Reply all
Reply to author
Forward
0 new messages