From 235869c45a653a3a683b39b07c98ffd63cbdb0e2 Mon Sep 17 00:00:00 2001 From: Peter Kofler Date: Fri, 7 Dec 2018 23:53:54 +0100 Subject: [PATCH] Description how to run the XSLT. --- xslt/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 xslt/README.md diff --git a/xslt/README.md b/xslt/README.md new file mode 100644 index 00000000..d06ce2ce --- /dev/null +++ b/xslt/README.md @@ -0,0 +1,19 @@ +# XSLT port of the Gilded-Rose Kata + +This is a XSLT 1.0 port of the *Gilded-Rose-Kata*. + +## Building and Running + +* [Apache Ant's XSLT task](https://ant.apache.org/manual/Tasks/style.html) is used to run the transformations. +* `update_quality.xsl` contains the Gilded Rose logic. +* Run Ant in the current folder to transform all files. +* `texttest_fixture.xml` is transformed into `texttest_fixture.next_day.xml` with updated values. + +## Unit Test + +[xsltunit](http://xsltunit.org/) is a implementation of xUnit in XSLT. + +* `tst_update_quality.xsl`is the the test (stylesheet). +* Run Ant in the current folder to run the tests. +* `update_quality.test_result.xml` contains the results and + `update_quality.test_result.html` is a readable report.