From 69ec4fac126e3fa1f8994271c383cedd84fc195c Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sat, 26 Mar 2016 13:57:01 -0400 Subject: [PATCH] New node mutator n:add-attributes * src/node.xsl (n:add-attributes): added * test/node.xspec: n:add-attributes tests added --- src/node.xsl | 34 +++++++++++++- test/node.xspec | 120 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 153 insertions(+), 1 deletion(-) diff --git a/src/node.xsl b/src/node.xsl index 938e7c1..2e07a75 100644 --- a/src/node.xsl +++ b/src/node.xsl @@ -47,7 +47,9 @@ functional system. @menu - * Primitive Constructors:: Functional equivalents of XSLT node primitives + * Primitive Constructors:: Functional equivalents of XSLT node + primitives + * Mutators: Node Mutators. Functional node manipulation @end menu @@ -195,4 +197,34 @@ + + + + + + + + + + + diff --git a/test/node.xspec b/test/node.xspec index e89f87d..2b53733 100644 --- a/test/node.xspec +++ b/test/node.xspec @@ -34,6 +34,13 @@ select="QName( 'test-ns-b', 'test-prefix-b:b' )" /> + + + + @@ -55,6 +62,10 @@ select="5" /> + + @@ -261,4 +272,113 @@ test="count( $x:result/node() ) = 3" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +