XSLT Unit Tests on included Stylesheets

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

XSLT Unit Tests on included Stylesheets

Post by Oleksii »

I tried to apply XSpec on the XSLT-Stylesheets which are included in a master stylesheet.
For instance, I wanted to test a stylesheet which contains only functions.
Applying the oxygen built-in transformation scenarios and using XSpec Helper View ends with "Transformation successful", but no results are displayed or stored. When I apply it to the main stylesheet, everything works properly, but I can only test the content from this one.
I use Master Files.
Oxygen 20.1
Win10
Kind regards,
Oleksii Sapov-Erlinger
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: XSLT Unit Tests on included Stylesheets

Post by alex_jitianu »

Hello,

Thank you for reporting this issue. Do you get any log inside the results area? Both the Oxygen built-in transformation scenarios and the XSpec Helper View are using ANT based transformation scenarios and when one such scenario fails we present some log inside the results area.

I've tried to reproduce this issue myself and in my case it was all working as expected. Does the tested module have dependencies on other modules that are not in ints scope but in the scope of the main xslt? For example, the function you are trying to test calls to another function that is actually declared inside the main module or a sibling module? if that's the case then the XSpec scenario can't possibly run because underneath it also creates and executes an XSLT that imports the tested XSLT.

It would be helpful if you could send some simplified sample files on support@oxygenxml.com so we can reproduce the issue.

Best regards,
Alex
Post Reply