From da9a16ae859e88c6463c9c0898ca48a32425a85a Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 13 Jul 2016 11:25:34 -0400 Subject: [PATCH] Add graph:lookup-from-doc * src/graph.xsl (graph:lookup-from-doc): Added * test/graph-doc.xml: Added * test/graph-test.xsl: Associated test data * test/graph.xspec: Associated tests added --- src/graph.xsl | 57 ++++++++++++++++++++++++++++++++++++++++ test/graph-doc.xml | 10 +++++++ test/graph-test.xsl | 8 +++++- test/graph.xspec | 63 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 137 insertions(+), 1 deletion(-) create mode 100644 test/graph-doc.xml diff --git a/src/graph.xsl b/src/graph.xsl index 28752345..9f3036ea 100644 --- a/src/graph.xsl +++ b/src/graph.xsl @@ -28,6 +28,7 @@ xmlns:preproc="http://www.lovullo.com/rater/preproc"> + + + + + + + + + + + + + + + + + diff --git a/test/graph-doc.xml b/test/graph-doc.xml new file mode 100644 index 00000000..0fb8b981 --- /dev/null +++ b/test/graph-doc.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/test/graph-test.xsl b/test/graph-test.xsl index 416f8fb5..a1cbb92d 100644 --- a/test/graph-test.xsl +++ b/test/graph-test.xsl @@ -29,7 +29,6 @@ - @@ -48,6 +47,13 @@ src="not-here" /> + + + + + diff --git a/test/graph.xspec b/test/graph.xspec index d7fdb9ad..54994303 100644 --- a/test/graph.xspec +++ b/test/graph.xspec @@ -286,4 +286,67 @@ satisfies deep-equal( $vertex/*, $foo:expected-lookup )" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +