Skip to content
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

Ability to specify a x:context for a x:call #65

Open
GoogleCodeExporter opened this issue Jun 8, 2015 · 2 comments
Open

Ability to specify a x:context for a x:call #65

GoogleCodeExporter opened this issue Jun 8, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

In my XSLT I have an xsl:key declaration at a global level. This key is built 
from the source document.

I later have a recursive named function which call's key() which I would like 
to test. I need to be able to set an x:context so that I can mock the data that 
the xsl:key is built from.

I can use x:call to call my function, but also using x:context in combination 
x:call is prohibited by XSpec. I think this needs to be relaxed.

Original issue reported on code.google.com by [email protected] on 25 Feb 2014 at 3:38

@yamahito
Copy link

+1 duplicated in #66 ?

@markdunnoup
Copy link

Not a duplicate of #66 - the key is created (or fails to be created) before the context is set.
It needs something similar to how XSpec deals with global variables, i.e. overriding them with <x:param>

innovimax pushed a commit to innovimax/xspec that referenced this issue Jan 17, 2017
* remove output and set up and clean test environment  expath#57 expath#64

- remove directories containing output of XSpec unit tests
- add directories and files to .gitignore 
- set up and clean the bats testing environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants