|
UserGuide
A guide for users of XSpec
IntroductionXSpec is a Behaviour Driven Development (BDD) framework for XML processing, currently focused on XSLT. BDD is like Test Driven Development (TDD) in that it encourages you to develop your code by
The difference between BDD and TDD is about how you write the tests. In BDD, your focus is on the behaviour of the code: the descriptions form the double role of both a human-readable documentation of what the code should do and runnable tests that can test whether the code does what it should do. In BDD, we describe scenarios and the expected behaviour of the application with these scenarios. Scenarios fit particularly well with XSLT's source-driven (or template-driven) approach. For example, a scenario might be: when processing a <para> element, it should create a <p> element. or something more complex like: when processing a <fn> element with a label attribute in footnote mode, it should create a <p> element with a <sup> child holding the value of the label element. Scenarios written like this naturally map onto XSLT templates. From Here
|
Sign in to add a comment
Suggestion: a list of known current limitations, issues, shortcomings, gotchas, and other items new users may trip on would be helpful.
An entry in that list:
If the stylesheet being tested has an xsl:output parameter with public and system identifiers for a DTD, they will show up in the report document (where they do not, strictly speaking, belong), complicating life for everyone.