From 81bec6714b006f954d7e49bf53472085a14f8f32 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 20 Nov 2014 23:42:03 -0500 Subject: [PATCH] apply-gen application template generation added --- .gitignore | 1 + Makefile | 15 +++++- src/transform/apply-gen.xsl | 38 ++++++++++++++++ test/transform/apply-gen-test-in.xsl | 36 +++++++++++++++ test/transform/apply-gen-test.xsl | 52 +++++++++++++++++++++ test/transform/apply-gen.xspec | 68 +++++++++++++++++++++++++++- 6 files changed, 207 insertions(+), 3 deletions(-) create mode 100644 test/transform/apply-gen-test-in.xsl create mode 100644 test/transform/apply-gen-test.xsl diff --git a/.gitignore b/.gitignore index df967b8..1188463 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /test/**/xspec/ +*.out diff --git a/Makefile b/Makefile index a900989..89bf7e9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -## xslink Makefile +## hoxsl Makefile # # Copyright (C) 2014 LoVullo Associates, Inc. # @@ -16,10 +16,21 @@ # along with this program. If not, see . ## +path_src := src path_test := test +test_in_apply_gen := $(path_test)/transform/apply-gen-test-in.xsl.out + .PHONY: check test test: check -check: +check: $(test_in_apply_gen) $(path_test)/runner + +%.xsl.out: %.xsl + java -jar "$(SAXON_CP)" \ + -xsl:"$(path_src)/transform/apply-gen.xsl" \ + "$<" > "$@" + +clean: + $(RM) "$(test_in_apply_gen)" diff --git a/src/transform/apply-gen.xsl b/src/transform/apply-gen.xsl index 550ad19..f8f971a 100644 --- a/src/transform/apply-gen.xsl +++ b/src/transform/apply-gen.xsl @@ -127,6 +127,8 @@ + @@ -154,4 +156,40 @@ + + + + + + + + + + + + + + + + + + + + + , + + $arg + + + + + + + + diff --git a/test/transform/apply-gen-test-in.xsl b/test/transform/apply-gen-test-in.xsl new file mode 100644 index 0000000..7bde386 --- /dev/null +++ b/test/transform/apply-gen-test-in.xsl @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + diff --git a/test/transform/apply-gen-test.xsl b/test/transform/apply-gen-test.xsl new file mode 100644 index 0000000..3241470 --- /dev/null +++ b/test/transform/apply-gen-test.xsl @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/transform/apply-gen.xspec b/test/transform/apply-gen.xspec index 421e6ab..888dabe 100644 --- a/test/transform/apply-gen.xspec +++ b/test/transform/apply-gen.xspec @@ -23,7 +23,7 @@ + stylesheet="apply-gen-test.xsl"> @@ -54,6 +54,49 @@ + + + + + + + + + + + + + + + + " + + + + + + + + + + + + + + + + @@ -100,4 +143,27 @@ + + + + + + + + + + + +