Skip to content

Commit

Permalink
Allow context in named templates. expath#66
Browse files Browse the repository at this point in the history
  • Loading branch information
markdunnoup authored and Serhiy Hapiy committed Feb 26, 2016
1 parent b5d7f2c commit dbc2952
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler/generate-xspec-tests.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
<!-- Set up the $context variable -->
<xsl:apply-templates select="$context" mode="x:setup-context"/>
<!-- Switch to the context and call the template -->
<for-each select="$context">
<for-each select="$impl:context"><!-- MJD 2015-11-25: changed from $context to fix https://github.com/expath/xspec/issues/66 -->
<xsl:copy-of select="$template-call" />
</for-each>
</xsl:when>
Expand Down
3 changes: 2 additions & 1 deletion src/schemas/xspec.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ function-scenario = function-call?,
## element defines the template call and the parameters passed to it and the
## <assertion> elements test the result of the template call. Child scenarios
## can override the parameters in the template call.
named-scenario = template-call?,
named-scenario = context?,
template-call?,
like*,
(pending | assertion)*,
(pending |
Expand Down

0 comments on commit dbc2952

Please sign in to comment.