Commit Graph

92 Commits (bb246b9bf23adb7e9ee3a8b9bbd6ca3592207f90)

Author SHA1 Message Date
Mike Gerwitz bb246b9bf2
apply-gen stylesheet version copy if provided
* src/transform/apply-gen.xsl: Use input stylesheet version if provided,
  otherwise 2.0.

* test/transform/apply-gen.xpsec: Test added
2016-07-05 00:16:36 -04:00
Mike Gerwitz 1fc360bc1c
Copy all stylesheet namespaces during apply-gen
* src/transform/apply-gen.xsl: Copy /xsl:*/namespace::*
* test/transform/apply-gen.xspec: Add respective test
2016-07-05 00:04:44 -04:00
Mike Gerwitz cc91a821e8
clean-local target for *.apply cleanup
Makefile.am (clean-local): Clean up generated *.apply files for tests.
2016-07-05 00:04:36 -04:00
Mike Gerwitz 26cba8eb52
xspec update for xsl:*/namespace::* retention
Allows testing namespace manipulation on xsl:* nodes (see next commit).
2016-07-05 00:04:23 -04:00
Mike Gerwitz 289cd8b802
Update manual copyright for 2016
* doc/hoxsl.texi: add 2016 copyright for mtg
2016-04-01 22:04:03 -04:00
Mike Gerwitz 09bf0d1807
Manual title version fix
* doc/hoxsl.texi: include version.texi before @settitle
2016-03-30 00:12:09 -04:00
Mike Gerwitz d38c6b3a8f
Initial support for slot data (no accessors or mutators)
* src/record.xsl: added R:init-slots and friends

* test/record.xspec: add slot data tests
2016-03-29 23:00:56 -04:00
Mike Gerwitz a921741f09
Add R:is-record predicate
* src/record.xsl (R:is-record): added
* test/record.xspec: add tests for R:is-record
2016-03-29 23:00:16 -04:00
Mike Gerwitz 7196a2f0c6
Anonymous records added
* src/record.xsl (R:make-record-header#1): added
* test/record.xspec: R:make-record-header#1 scenario added
2016-03-29 23:00:16 -04:00
Mike Gerwitz ae98699094
Record slot naming
* src/record.xsl (n:name-slots, n:slot-names): added
* test/record.xspec: slot naming tests added
2016-03-29 23:00:16 -04:00
Mike Gerwitz ae589865e3
{www.lovullo.com=>mikegerwitz.com} namespaces 2016-03-29 23:00:16 -04:00
Mike Gerwitz 69ec4fac12
New node mutator n:add-attributes
* src/node.xsl (n:add-attributes): added
* test/node.xspec: n:add-attributes tests added
2016-03-29 23:00:16 -04:00
Mike Gerwitz 462d270c74
doc/Makefile.am: license header 2016-03-29 23:00:16 -04:00
Mike Gerwitz 2967463cdb
node.xsl (n:attr#1): added 2016-03-29 23:00:16 -04:00
Mike Gerwitz 057cdbb683
Node attr pair removal for n:attr
node.xsl (n:attr): added
node.xsl: removed all attr-pairs
record.xsl: updated n:element calls
2016-03-29 23:00:15 -04:00
Mike Gerwitz e8e2dff3e6
Basic record suppport
* record.xsl: added
  This only support unnamed slots.

* record.xspec: added

Notice the documentation style: all sentences and clauses of compound
sentences are on their own lines, indented relative to their parent.  This
produces much better diffs when things change.
2016-03-29 23:00:11 -04:00
Mike Gerwitz 77ff279139 Primitive node constructors 2015-10-08 00:14:27 -04:00
Mike Gerwitz 08a43bdd78
[Project fork notice]
I began development of Hoxsl under my employer, LoVullo Associates, which
holds copyright to the commits prior to this one.  This project was largely
planned on my own time and represents an ideal; there has been no time to
continue its disciplined developement under LoVullo, I do not expect for
there to be time to develop this project to my liking, and I don't expect
others within the organization to maintain and improve upon it once I'm
gone.

As such, I'm forking this project and developing it personally outside of
LoVullo Associates.  I don't use XSLT outside of LoVullo, so this
realistically is still a project that will only be used there (by myself),
and I can't say whether I'll continue to maintain this project after I
leave.  But similar to how I developed GNU ease.js on my own time---to
benefit software I write at LoVullo---it doesn't make sense to develop the
project on unpaid overtime for no reason, when I'm not even being asked to
do so.

It is therefore in my best interest, to ensure that Hoxsl will always remain
Free (as in freedom), that I continue development as a personal project.

With all that said, Hoxsl will be used for other Free public projects at
LoVullo---such as TAME---that I will continue to liberate and may be useful,
even if only from an academic perspectve, outside of LoVullo.

As if I didn't already have enough unfinished things on my plate...
2015-10-08 00:01:50 -04:00
Mike Gerwitz 989ef09f3c
Correct XSL{=>T} in README.md title 2015-10-08 00:00:17 -04:00
Mike Gerwitz 4199b989b3 Use configure-time path for literate-xsl over submodule
The submodule is inconvenient and requires awkward project updates for
changes that might be frequent (as it is developed alongside this project).
If we become worried about BC breaks, then we'll do a version check.
2015-09-29 22:57:21 -04:00
Mike Gerwitz a2a34ba19a Add @xmlcomment Texinfo macro 2015-09-29 22:56:33 -04:00
Mike Gerwitz fbc54909a0 Delete target on build error 2015-09-29 22:56:09 -04:00
Mike Gerwitz 7a189d90b9 xsltexi-generated documentation
The documentation will begin to be modelled after Knuth's concept of
literate programming.  The document is not in the best state, but at least
it is now being generated.
2014-12-19 15:44:09 -05:00
Mike Gerwitz a7595b0613 UTF-8 document encoding for manual 2014-12-19 14:51:03 -05:00
Mike Gerwitz a8335444a8 Node sectioning for documentation 2014-12-19 14:51:02 -05:00
Mike Gerwitz 262f04db6d xsltexi-generated files included 2014-12-19 14:51:02 -05:00
Mike Gerwitz 6900181363 apply/ref documentation syntax corrections
These problems won't happen in the future; they were unchecked because
documentation wasn't being generated.
2014-12-19 14:51:02 -05:00
Mike Gerwitz f522a78ed1 License header @comment flag for xsltexi 2014-12-19 14:51:02 -05:00
Mike Gerwitz ae82e28cd3 xsltexi Texinfo file generation 2014-12-19 14:50:59 -05:00
Mike Gerwitz d3315bce91 Documentation syntax correction for partial.xsl docblock 2014-12-19 12:42:09 -05:00
Mike Gerwitz 587d22e2b2 GNU autotools, including doc build 2014-12-19 12:39:22 -05:00
Mike Gerwitz 0ddd0cd32a TexInfo documentation boilerplate 2014-12-19 12:39:06 -05:00
Mike Gerwitz 37ccac5f87 `f:thrush' implemented (alias of `f:thrushr')
`f:thrushl' will follow in the near future; don't you worry.
2014-12-10 15:34:48 -05:00
Mike Gerwitz 5f3e9aad1c Comment to indicate that `f:thrushl' is not yet implemented
It will be; I just do not need it at this moment and want to get other
things moving.
2014-12-10 15:31:59 -05:00
Mike Gerwitz ebc6891c3c Initial thrushing implementation
f:thrushr
2014-12-10 15:31:35 -05:00
Mike Gerwitz bb049984d5 All ref functions now have data adjacency guarantees
Accessors will ignore adjacent data and mutators will echo them, by
reference, unchanged.
2014-12-04 15:28:57 -05:00
Mike Gerwitz 0b5ed975a0 `arity/ref.xsl' documentation updated to reflect data adjacency guarantees 2014-12-04 15:27:47 -05:00
Mike Gerwitz 4c27b8d15d Assurances that all other `f:*' functions properly handle adjacent data 2014-12-04 15:27:47 -05:00
Mike Gerwitz 658edd8717 `f:set-args' respects and echoes adjacent data by references
Was previously clobbered.
2014-12-04 15:27:47 -05:00
Mike Gerwitz e93283c608 `f:args' ignores adjacent data 2014-12-04 15:27:46 -05:00
Mike Gerwitz 2760834bfb partial.xspec using `f:make-ref' instead of manual construction 2014-12-04 15:27:46 -05:00
Mike Gerwitz 09d2231fc0 `f:length' added
This is aggressively tested in every instance where it could be affected,
since any mishandling of this value would be incredibly dangerous (best
case, it would blow up and abort; worst case, data are interchanged between
refs).
2014-12-04 02:15:22 -05:00
Mike Gerwitz 4f7bb0fcef `apply-gen' partial functions now generated
This produces a short-hand partial application (well, it'd be more accurate
to call the use of `f:apply' or `f:partial' long-hand, since this is most
natural).
2014-12-04 01:14:13 -05:00
Mike Gerwitz 31aa7fa111 `apply-gen' now ingores arity-overloaded functions
Rationale is provided in `apply-gen.xsl'.
2014-12-04 01:13:24 -05:00
Mike Gerwitz e392d411fa Short-hand partial application example added to README.md 2014-12-02 16:43:05 -05:00
Mike Gerwitz bb9107c8c1 `apply-gen' now generates functions for partial applications
This is intended as a convenient shorthand:

```xml
  <!-- these two are identical -->
  <sequence select="f:apply( my:func(), $x, $y )" />
  <sequence select="my:func( $x, $y )" />
```
2014-12-02 16:05:01 -05:00
Mike Gerwitz faadaa3edd More comprehensive fnref abstraction
This will allow the implementation to evolve transparently.  And it will be
evolving.
2014-12-01 09:53:45 -05:00
Mike Gerwitz 189eb0cdd6 Partial applications now defined in terms of ref mutators 2014-12-01 09:48:45 -05:00
Mike Gerwitz c526fa2925 `f:{unshift,push}-args' added 2014-12-01 00:34:52 -05:00
Mike Gerwitz 18c1614777 `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.
2014-11-30 04:36:08 -05:00