Commit Graph

85 Commits (a921741f097f00c13ab281943c486921ef0c6e8d)

Author SHA1 Message Date
Mike Gerwitz d9f4894546 README.md updated with mention of partial applications
It does not do it much justice; documentation will come later.  The test
cases are comprehensive.
2014-11-27 01:11:31 -05:00
Mike Gerwitz a351e94910 All `f:apply' functions support partial application
'Tis tasty!
2014-11-27 01:11:30 -05:00
Mike Gerwitz 63487afa67 `f:apply' currying support
Partial application support on all the other `f:apply' functions (other
arities) will be completed in the next commit.
2014-11-27 01:11:30 -05:00
Mike Gerwitz 425f050b03 `f:apply' test case now using f:make-ref
That is, in place of manual construction.  This is especially important for
the next commit, which requires an arity datum.
2014-11-27 01:11:29 -05:00
Mike Gerwitz 33788871a9 f:make-ref, f:is-ref, and f:QName added 2014-11-27 01:11:29 -05:00
Mike Gerwitz b384e5fad1 Partial applications apply target function when all params are bound
I am aware of the Saxon 9 warning regarding multiple imports of arity.xsl;
I'm going to choose to ignore this, formally in the future.  Each of the
stylesheets is treated like a module.

Michael Kay, Saxon's author, discusses it here:

  http://stackoverflow.com/a/10102298
2014-11-27 01:11:28 -05:00
Mike Gerwitz 465ef7e8a5 Apply test case ensures arguments are passed by reference
Confidence in its application is also increased through a unique node.
2014-11-27 01:11:28 -05:00
Mike Gerwitz 0dc019c9ed Error and hook for arity count in partial application 2014-11-27 01:11:27 -05:00
Mike Gerwitz 04373b5edd f:arity extracted into its own stylesheet
It depends on partial application logic, but does not belong in partial.xsl
2014-11-27 01:11:27 -05:00
Mike Gerwitz a02865d8b1 May now partially apply partial applications 2014-11-27 01:11:26 -05:00
Mike Gerwitz 8ba1f04147 Partial application initial development
No support yet for recursive partial applications; just a basic concept.
2014-11-27 01:11:14 -05:00
Mike Gerwitz 0f2212e7d4 test/runner properly fails on xspec non-zero exit 2014-11-24 11:13:45 -05:00
Mike Gerwitz 8a204534f0 *.{out=>apply} for test case apply-gen output 2014-11-24 11:08:24 -05:00
Mike Gerwitz 1c01e765a7 Delayed function nodes now wrapped in f:ref node
This primarily allows us to type check, but will also may it easy/performant
to query more complicated structures.
2014-11-24 11:07:25 -05:00
Mike Gerwitz eb66c838c6 f:arity added for delayed functions 2014-11-22 00:17:01 -05:00
Mike Gerwitz acdacef1d7 apply-gen application template priority for good measure
Depending on import/include order is a bad idea.
2014-11-22 00:05:11 -05:00
Mike Gerwitz 01217711c4 {xslink=>hoxsl} namespace corrections
Copy-paste exposed.
2014-11-22 00:05:11 -05:00
Mike Gerwitz 1cc2423662 apply-gen now properly handles multiple functions 2014-11-22 00:05:11 -05:00
Mike Gerwitz dd6c8a8040 Docblocks for fgen:create-{func,tpl} 2014-11-22 00:05:11 -05:00
Mike Gerwitz d33b369ef4 README.md licensed under the FDL 1.3 2014-11-22 00:05:11 -05:00
Mike Gerwitz f7eaa821bc Basic README.md added 2014-11-22 00:05:11 -05:00
Mike Gerwitz e96bc07b39 test/runner will now fail on non-fatal test errors 2014-11-22 00:05:11 -05:00
Mike Gerwitz f50c2299fa f:apply implemented
Although the general concept was independently discovered, the finer details
of this implementation are motivated by the excellent, comprehensive work of
Dimitre Novatchev[0].

For those of us who either can't, or don't wish to, abaondon XSLT.

[0]: http://conferences.idealliance.org/extreme/html/2006/Novatchev01/EML2006Novatchev01.html
2014-11-22 00:05:08 -05:00
Mike Gerwitz 061d4b7e09 test/runner now accepts list of tests, defaulting to all 2014-11-21 09:12:45 -05:00
Mike Gerwitz db95ae12ff test/runner now outputs file name before running 2014-11-21 00:20:25 -05:00
Mike Gerwitz 91c10bca41 test/runner index location correction 2014-11-21 00:20:24 -05:00
Mike Gerwitz de627c9822 test/runner will now exit with non-zero status on any failure 2014-11-21 00:14:24 -05:00
Mike Gerwitz ab4c9208aa test/index.html now ignored by Git 2014-11-20 23:46:01 -05:00
Mike Gerwitz 81bec6714b apply-gen application template generation added 2014-11-20 23:45:59 -05:00
Mike Gerwitz 28845f8b2e apply-gen ensures output of namespaces used by processed functions 2014-11-20 23:39:53 -05:00
Mike Gerwitz 4130b6cf4b apply-gen now ignores nullary functions 2014-11-20 23:39:23 -05:00
Mike Gerwitz 935ce312b4 apply-gen output generation warning comment added 2014-11-20 23:38:06 -05:00
Mike Gerwitz 04700086b1 apply-gen generated stylesheet contains version number (2.0) 2014-11-20 23:10:02 -05:00
Mike Gerwitz c73f3a4e7c apply-gen initial development 2014-11-20 22:22:28 -05:00
Mike Gerwitz d3aaa7faa0 Project scaffolding modeled after xslink 2014-11-20 11:59:54 -05:00