XSLT Unit Tests on included Stylesheets

Here should go questions about transforming XML with XSLT and FOP.
alex511
Posts: 17
Location: Austria

XSLT Unit Tests on included Stylesheets

Tue Dec 18, 2018 2:22 pm

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
alex_jitianu
Posts: 653

Re: XSLT Unit Tests on included Stylesheets

Wed Dec 19, 2018 4:12 pm

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

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 2 guests