-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot test a named template with a particular context #66
Comments
Original comment by |
+1 |
A workaround may be to write a one-template 'runner' XSLT that imports the real stylesheet, where the single template matches on the right element and just calls the named template. The XSpec file uses the 'runner' stylesheet rather than the real stylesheet. |
I've tried working around it by passing the context as a tunnel parameter. It's horrible, and you have to do everything within the template using $context explicitly. On Thu, Sep 17, 2015 at 2:41 PM, Tony Graham [email protected]
|
This is possibly a small error in the file xspec\src\compiler\generate-xspec-tests.xsl If I replace the fragment:
with
I can compile and run the XSpec without a problem. I have no idea if this breaks something else, but it looks as though the intention in this stylesheet is to support a template call with context within a scenario. |
Anyway, the schema xspec.rnc doesn't allow x:call after x:context... |
That's true, @AirQuick - but you should be able to achieve the same goal with nested scenario until and if they decide to fix the schema. |
PR-76 issue #66 allow context in named templates
Original issue reported on code.google.com by
[email protected]
on 28 Feb 2014 at 12:56The text was updated successfully, but these errors were encountered: