Mike Gerwitz

Activist for User Freedom

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitm@lovullo.com>2015-04-15 12:26:58 -0400
committerMike Gerwitz <gerwitm@lovullo.com>2015-04-15 12:28:01 -0400
commit40e0464c67370fe1468ed4f02fbd0b2fb036818d (patch)
treed9fb10d48abf7920582c4501d624493d0f83c708
parent21f94be4e8923060918a23f3d46bb5786596e4ef (diff)
downloadliterate-xsl-40e0464c67370fe1468ed4f02fbd0b2fb036818d.tar.gz
literate-xsl-40e0464c67370fe1468ed4f02fbd0b2fb036818d.tar.bz2
literate-xsl-40e0464c67370fe1468ed4f02fbd0b2fb036818d.zip
Functions and named templates now generate anchors
Anchors are generated from the namespace prefix and local name, making it easy (and intuitive) to reference.
-rw-r--r--src/xsltexi.xsl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xsltexi.xsl b/src/xsltexi.xsl
index 73290a1..5578133 100644
--- a/src/xsltexi.xsl
+++ b/src/xsltexi.xsl
@@ -111,6 +111,9 @@
The return type, if not provided as @code{@as}, defaults to
@code{xs:sequence()}. Parameters are output in a style consistent
with the XPath specification.
+
+ An anchor will also be generated using the namespace prefix and
+ local name, which allows for easy and intuitive referencing.
-->
<template mode="xt:doc-gen" priority="5"
match="xsl:template|xsl:function">
@@ -126,6 +129,8 @@
<value-of select="concat(
$xt:nl,
+ '@anchor{', @name, '}',
+ $xt:nl,
'@deftypefn ', name(), ' {', $type, '} ',
@name, ' (', $param-str, ')',
$xt:nl,