XSLT unit test
Are you missing a feature? Request its implementation here.
-
- Posts: 37
- Joined: Sun Feb 12, 2006 10:34 pm
XSLT unit test
I would like to see Oxygen support XSLT unit testing. In the simplest case I imagine something like this: I embed, say, in an annotation in a template, several testing scenarios. Each scenario consists of a context, any parameters I might wish to supply to the template, and the expected outcome of the transformation. When instructed to unit-test the template Oxygen would run each scenario by invoking the template in the specified context with the specified parameters and comparing the output to the expected outcome. It would also be nice if the expected outcome could assume the form of a collection of Schematron-like assertions. A further improvement on this simple case would be allowing tests to be kept separate from the templates in external files and templates to refer to them.
-
- Site Admin
- Posts: 2097
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Richard,
See
http://www.jenitennison.com/xslt/utilit ... t-testing/
You can find there also a description about how to use that from oXygen
George
See
http://www.jenitennison.com/xslt/utilit ... t-testing/
You can find there also a description about how to use that from oXygen
Best Regards,...
The way I use it is that I've rigged up <oXygen/> with an "External Tool" so that I can hit a button and have the tests run and the results come up in the browser. If you use <oXygen/>, it's easy enough to do: go to Tools > External Tools > Preferences, click New and fill in the form as follows (I have the unit testing files in D:\library\unit testing):
Name
Test Stylesheet
Description
Runs the unit tests embedded in the current stylesheet
Working Directory
D:\library\unit testing
Command
"D:\library\unit testing\test.bat" ${cf}
...
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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