XSLT Unit Tests on included Stylesheets
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 84
- Joined: Wed Jul 19, 2017 6:04 pm
- Location: Austria
- Contact:
XSLT Unit Tests on included Stylesheets
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
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
Oleksii Sapov-Erlinger
-
- Posts: 1016
- 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
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service