reference a variable from the main stylesheet

Here should go questions about transforming XML with XSLT and FOP.
Oleksii
Posts: 39
Joined: Wed Jul 19, 2017 6:04 pm
Location: Austria
Contact:

reference a variable from the main stylesheet

Post by Oleksii » Tue Jul 16, 2019 2:35 pm

Hi,

I want to use a variable from the main stylesheet in the included stylesheet. Getting the error:
Variable processedFile has not been declared (or its declaration is not in scope
Vice-versa works well.
Is it a violation of the XSLT or an oxygen issue?
I'm using Master Files.

adrian
Posts: 2540
Joined: Tue May 17, 2005 4:01 pm

Re: reference a variable from the main stylesheet

Post by adrian » Fri Jul 19, 2019 1:02 pm

Hello,

What version of Oxygen are you using (Help > About)?
Are you using the standalone edition of Oxygen or the Eclipse plugin?
I want to use a variable from the main stylesheet in the included stylesheet.
It should work if configured correctly.
Is the main stylesheet added to the list of master files and the master files support enabled?
If they are, the module will be validated in the context of the main stylesheet, so you shouldn't be seeing that error.

Do you have custom validation scenarios associated with either the main stylesheet or the module? These can interfere with the master files support.

If you validate the main stylesheet, does that validate correctly?
If the main stylesheet doesn't validate, that's the problem.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply