diff --git a/src/current/include/preproc/package.xsl b/src/current/include/preproc/package.xsl
index 0426cf33..ddbe22ee 100644
--- a/src/current/include/preproc/package.xsl
+++ b/src/current/include/preproc/package.xsl
@@ -46,6 +46,25 @@
+
+
+
+
+
+
+
+
-
+
+
+
[preproc] *macro pass complete; expanding...
diff --git a/src/current/include/preproc/template.xsl b/src/current/include/preproc/template.xsl
index c327a7e8..5211aea5 100644
--- a/src/current/include/preproc/template.xsl
+++ b/src/current/include/preproc/template.xsl
@@ -23,6 +23,7 @@
+
+
+ select="preproc:locate-template( $symtable-map, $name, root( . ) )" />
+
+ select="$symtable-map( $name )" />
+
+
-
-
-
+ select="preproc:locate-template(
+ $symtable-map, $name, $src-root )" />
@@ -254,7 +251,16 @@
- Undefined template
+
+
+
+
+
+ [preproc] deferring application of unknown template
+
+
+
+
@@ -546,24 +552,6 @@
-
-
-
-
-
-
-
- [preproc] deferring application of unknown template
-
-
-
-
-
-
-
@@ -1512,7 +1500,11 @@
-->
-
+
+
+
+
@@ -1570,10 +1562,16 @@
+
+
+
+ select="$node">
+
+
diff --git a/src/preproc/expand/expand-sequence.xsl b/src/preproc/expand/expand-sequence.xsl
index e04163f9..8caccdfd 100644
--- a/src/preproc/expand/expand-sequence.xsl
+++ b/src/preproc/expand/expand-sequence.xsl
@@ -38,7 +38,7 @@
generally unnecessary.
Expansion sequences are initiated by invoking
- @ttref{eseq:expand-step#1} on any arbitrary node containing any number
+ @ttref{eseq:expand-step#2} on any arbitrary node containing any number
of children to be expanded in order. Each call will proceed one
step (detailed herein), eventually resulting in each node expanded
and the expansion sequence node eliminated.
@@ -58,6 +58,7 @@
return an empty sequence in such a case.
-->
+
+ select="$target">
+
+
@@ -187,9 +190,11 @@
-->
+
+
-
+
@@ -250,7 +255,7 @@
after all expansions are complete and the expansion sequence node
itself is eliminated (per the final match above), then the node that
was last expanded and hoisted will be considered to be the expansion
- sequence by @ttref{eseq:expand-step#1}. This is true, but should not
+ sequence by @ttref{eseq:expand-step#2}. This is true, but should not
be a problem in practice: hoisting is intended to place nodes into
context for the caller; it is expected that the caller will
recognize when to invoke sequence expansion (likely on a pre-defined
@@ -286,9 +291,10 @@
function.
Actual expansion is left to
- @ref{eseq:expand-node#1,,@code{eseq:expand-node#1}}.
+ @ref{eseq:expand-node#2,,@code{eseq:expand-node#2}}.
-->
+
@@ -314,7 +320,7 @@
Its default behavior is an important consideration: what if
@ttref{eseq:is-expandable#1} is overridden but the implementation
- forgets to override @ttref{eseq:expand-node#1}? If the default
+ forgets to override @ttref{eseq:expand-node#2}? If the default
behavior were to simply echo back the node, it seems likely that we
would never finish processing, since the very node that matched the
predicate to begin with would remain unchanged.
@@ -341,6 +347,7 @@
prevent infinite recursion/iteration.
-->
+
@@ -352,7 +359,7 @@