diff --git a/README.md b/README.md
index 996db0b..8827e5c 100644
--- a/README.md
+++ b/README.md
@@ -70,11 +70,17 @@ the output included within a distribution.
### Partial Applications
Dynamic function applications using `f:apply` are partially applied if
the number of arguments provided is less than the arity of the target
-function.
+function. For convenience, the `apply-gen` stylesheet will also
+generate functions to perform partial application without the use of
+`f:apply` for the first call, as in the first example below:
```xml
+
+
+
@@ -84,6 +90,7 @@ function.
```
diff --git a/src/transform/apply-gen.xsl b/src/transform/apply-gen.xsl
index adf5401..e7d80be 100644
--- a/src/transform/apply-gen.xsl
+++ b/src/transform/apply-gen.xsl
@@ -32,6 +32,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:f="http://www.lovullo.com/hoxsl/apply"
+ xmlns:_f="http://www.lovullo.com/hoxsl/apply/_priv"
xmlns:fgen="http://www.lovullo.com/hoxsl/apply/gen"
xmlns:out="http://www.lovullo.com/hoxsl/apply/gen/_out"
exclude-result-prefixes="#default fgen">
@@ -111,6 +112,37 @@
+
+
+
+ No definition generated for overloaded function `
+
+ #
+
+ '
+
+
+
+
@@ -147,10 +179,15 @@
@@ -161,15 +198,42 @@
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -187,7 +251,7 @@
-
-
-
+
-
-
-
-
-
-
-
-
- ,
-
- $arg
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ,
+
+ $arg
+
+
+
+
+
+
+
+
diff --git a/test/transform/apply-gen-test-in.xsl b/test/transform/apply-gen-test-in.xsl
index 72a64af..73ce7f6 100644
--- a/test/transform/apply-gen-test-in.xsl
+++ b/test/transform/apply-gen-test-in.xsl
@@ -41,4 +41,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/transform/apply-gen.xspec b/test/transform/apply-gen.xspec
index 151731c..03c3203 100644
--- a/test/transform/apply-gen.xspec
+++ b/test/transform/apply-gen.xspec
@@ -26,6 +26,20 @@
xmlns:foo="http://www.lovullo.com/_junk"
stylesheet="apply-gen-test.xsl">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -116,6 +130,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -218,5 +253,203 @@
select="2" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+