diff --git a/src/apply.xsl b/src/apply.xsl
index 6f76bcf..d7fd6e3 100644
--- a/src/apply.xsl
+++ b/src/apply.xsl
@@ -32,14 +32,14 @@
-
+
-
+
@@ -49,7 +49,7 @@
-
+
@@ -61,7 +61,7 @@
-
+
@@ -75,7 +75,7 @@
-
+
@@ -91,7 +91,7 @@
-
+
@@ -109,7 +109,7 @@
-
+
@@ -129,7 +129,7 @@
-
+
@@ -151,7 +151,7 @@
-
+
@@ -201,7 +201,7 @@
determined, -1 is returned.
-->
-
+
-
+
-
+
+
+
+
+
@@ -184,7 +188,7 @@
select="$defn/xsl:param" />
diff --git a/test/apply-test.xsl b/test/apply-test.xsl
index e751e30..66cece9 100644
--- a/test/apply-test.xsl
+++ b/test/apply-test.xsl
@@ -28,20 +28,20 @@
-
+
-
+
-
+
@@ -49,7 +49,7 @@
-
+
@@ -58,7 +58,7 @@
-
+
@@ -68,7 +68,7 @@
-
+
@@ -80,7 +80,7 @@
-
+
@@ -93,7 +93,7 @@
-
+
@@ -107,7 +107,7 @@
-
+
diff --git a/test/apply.xspec b/test/apply.xspec
index 865ba1b..8608775 100644
--- a/test/apply.xspec
+++ b/test/apply.xspec
@@ -33,7 +33,9 @@
-
+
+
+
@@ -48,7 +50,9 @@
-
+
+
+
-
+
+
+
@@ -69,7 +75,9 @@
-
+
+
+
@@ -81,7 +89,9 @@
-
+
+
+
@@ -94,7 +104,9 @@
-
+
+
+
@@ -108,7 +120,9 @@
-
+
+
+
@@ -123,7 +137,9 @@
-
+
+
+
@@ -139,7 +155,9 @@
-
+
+
+
@@ -156,7 +174,9 @@
-
+
+
+
@@ -182,7 +202,9 @@
-
+
+
+
@@ -197,7 +219,7 @@
-
+
diff --git a/test/transform/apply-gen.xspec b/test/transform/apply-gen.xspec
index 3d84649..df9dae9 100644
--- a/test/transform/apply-gen.xspec
+++ b/test/transform/apply-gen.xspec
@@ -49,13 +49,15 @@
-
+
+ test="xsl:stylesheet/xsl:template/@match
+ = 'f:ref[ foo:bar ]'" />