diff --git a/src/apply.xsl b/src/apply.xsl
index d96db5f..fc184c6 100644
--- a/src/apply.xsl
+++ b/src/apply.xsl
@@ -34,15 +34,12 @@
-
+
-
+
-
-
@@ -56,63 +53,50 @@
-
-
-
-
+
-
+
-
-
-
-
-
+
-
+
-
-
-
-
-
-
+
-
+
-
-
-
-
-
-
-
+
-
+
@@ -120,19 +104,14 @@
-
-
-
-
-
-
-
-
+
-
+
@@ -141,20 +120,14 @@
-
-
-
-
-
-
-
-
-
+
-
+
@@ -164,16 +137,9 @@
-
-
-
-
-
-
-
-
-
-
+
diff --git a/test/apply-test.xsl b/test/apply-test.xsl
index 010de9c..ca3ee18 100644
--- a/test/apply-test.xsl
+++ b/test/apply-test.xsl
@@ -154,4 +154,20 @@
+
+
+
+
+
+
+
+
diff --git a/test/apply.xspec b/test/apply.xspec
index 9262024..7f6ad61 100644
--- a/test/apply.xspec
+++ b/test/apply.xspec
@@ -218,12 +218,13 @@
+
+
-
@@ -252,15 +253,168 @@
+ test="foo:arg8-check( $args/*, $x:result )" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+