Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'test/graph-test.xsl')
-rw-r--r--test/graph-test.xsl22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/graph-test.xsl b/test/graph-test.xsl
index eaa654d..416f8fb 100644
--- a/test/graph-test.xsl
+++ b/test/graph-test.xsl
@@ -194,6 +194,18 @@
</variable>
+<variable name="foo:expected-lookup" as="element()">
+ <preproc:sym-ref name="foo" lookup="ok" />
+</variable>
+
+
+<variable name="foo:sym-list" as="element()+">
+ <preproc:sym name="foo" />
+ <preproc:sym name="bar" />
+ <preproc:sym name="baz" />
+</variable>
+
+
<function name="foo:lookup">
<param name="yield" as="element()" />
<param name="symbol" as="element( preproc:sym )" />
@@ -206,4 +218,14 @@
</preproc:sym-deps>
</function>
+
+<function name="foo:lookup-sym">
+ <param name="yield" as="element()" />
+ <param name="symbol" as="element( preproc:sym )" />
+
+ <preproc:sym-dep name="{$symbol/@name}">
+ <sequence select="$yield" />
+ </preproc:sym-dep>
+</function>
+
</stylesheet>