From 18c1614777e54338eeeff788cb3e1662481393c7 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 30 Nov 2014 04:34:44 -0500 Subject: [PATCH] `f:set-args' setter and `f:args' accessor implemented As operations on dynamic function references become more complex, and since evolution of the reference structure is planned to evolve, maintaining an abstraction is vital for both grokking and maintenance. --- src/apply/ref.xsl | 65 ++++++++++++++++- test/apply/ref.xspec | 161 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 220 insertions(+), 6 deletions(-) diff --git a/src/apply/ref.xsl b/src/apply/ref.xsl index 3ea34de..bb94d73 100644 --- a/src/apply/ref.xsl +++ b/src/apply/ref.xsl @@ -104,19 +104,24 @@ - + + + + select="$desc/element()[ 1 ]" /> @@ -143,4 +148,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/apply/ref.xspec b/test/apply/ref.xspec index da2a9df..c3e67b1 100644 --- a/test/apply/ref.xspec +++ b/test/apply/ref.xspec @@ -38,6 +38,14 @@ select="f:make-ref( QName( $foo-uri, 'foo:bar' ), $test-arity )" /> + + + + + + + + @@ -169,10 +177,11 @@ - - + + @@ -186,6 +195,22 @@ + + + + + + + + + + + @@ -241,4 +266,134 @@ select="$test-arity - 3" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +