Mike Gerwitz

Activist for User Freedom

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mtg@gnu.org>2015-10-06 23:38:58 -0400
committerMike Gerwitz <mtg@gnu.org>2015-10-06 23:39:09 -0400
commitc058e0ca1ed200cd6e3d285634dac3452d8df0a5 (patch)
tree02f056513b4af8935453b45d6d8dcdbc3870e5f9
parentca28680f79063c31cac2bdd9c7a47d06587f6797 (diff)
downloadliterate-xsl-c058e0ca1ed200cd6e3d285634dac3452d8df0a5.tar.gz
literate-xsl-c058e0ca1ed200cd6e3d285634dac3452d8df0a5.tar.bz2
literate-xsl-c058e0ca1ed200cd6e3d285634dac3452d8df0a5.zip
Generate variable definitionsHEADmaster
That is, top-level variables.
-rw-r--r--src/texinfo.xsl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/texinfo.xsl b/src/texinfo.xsl
index 1ed8baf..682e642 100644
--- a/src/texinfo.xsl
+++ b/src/texinfo.xsl
@@ -105,7 +105,7 @@
<!--
- Generate `template' and `function' definitions
+ Generate definitions
The return type, if not provided as @code{@as}, defaults to
@code{xs:sequence()}. Parameters are output in a style consistent
@@ -115,7 +115,7 @@
which allows for easy and intuitive referencing.
-->
<template mode="xt:doc-gen" priority="5"
- match="xsl:template|xsl:function">
+ match="xsl:template|xsl:function|xsl:variable">
<variable name="doc" as="xs:string?"
select="xt:get-docblock( . )" />
@@ -206,7 +206,8 @@
<!-- FIXME: this will be a maintenance burden -->
<sequence select="$next instance of element( xsl:template )
- or $next instance of element( xsl:function )" />
+ or $next instance of element( xsl:function )
+ or $next instance of element( xsl:variable )" />
</function>