Skip to content

Commit

Permalink
Merge pull request #1 from cirulls/develop
Browse files Browse the repository at this point in the history
PR-76 issue #66 allow context in named templates
  • Loading branch information
Sandro Cirulli committed Feb 21, 2016
2 parents 8aca31c + 07c0c60 commit 26a4292
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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">
<xsl:copy-of select="$template-call" />
</for-each>
</xsl:when>
Expand Down
5 changes: 3 additions & 2 deletions 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 Expand Up @@ -190,4 +191,4 @@ test = attribute test { xpath }
common-attributes = attribute xml:* { text }*

any-content = mixed { any-element* }
any-element = element * { attribute * { text }*, any-content }
any-element = element * { attribute * { text }*, any-content }

0 comments on commit 26a4292

Please sign in to comment.