Page 1 of 1

reference a variable from the main stylesheet

Posted: Tue Jul 16, 2019 2:35 pm
by Oleksii
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.

Re: reference a variable from the main stylesheet

Posted: Fri Jul 19, 2019 1:02 pm
by adrian
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