diff --git a/src/transform/apply-gen.xsl b/src/transform/apply-gen.xsl
new file mode 100644
index 0000000..7cef4d0
--- /dev/null
+++ b/src/transform/apply-gen.xsl
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ fatal: unexpected root node `
+
+ '
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/transform/apply-gen.xspec b/test/transform/apply-gen.xspec
new file mode 100644
index 0000000..efc8c77
--- /dev/null
+++ b/test/transform/apply-gen.xspec
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+