Functions and named templates now generate anchors
Anchors are generated from the namespace prefix and local name, making it easy (and intuitive) to reference.master
parent
21f94be4e8
commit
40e0464c67
|
@ -111,6 +111,9 @@
|
||||||
The return type, if not provided as @code{@as}, defaults to
|
The return type, if not provided as @code{@as}, defaults to
|
||||||
@code{xs:sequence()}. Parameters are output in a style consistent
|
@code{xs:sequence()}. Parameters are output in a style consistent
|
||||||
with the XPath specification.
|
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"
|
<template mode="xt:doc-gen" priority="5"
|
||||||
match="xsl:template|xsl:function">
|
match="xsl:template|xsl:function">
|
||||||
|
@ -125,6 +128,8 @@
|
||||||
select="if ( @as ) then @as else 'xs:sequence*'" />
|
select="if ( @as ) then @as else 'xs:sequence*'" />
|
||||||
|
|
||||||
<value-of select="concat(
|
<value-of select="concat(
|
||||||
|
$xt:nl,
|
||||||
|
'@anchor{', @name, '}',
|
||||||
$xt:nl,
|
$xt:nl,
|
||||||
'@deftypefn ', name(), ' {', $type, '} ',
|
'@deftypefn ', name(), ' {', $type, '} ',
|
||||||
@name, ' (', $param-str, ')',
|
@name, ' (', $param-str, ')',
|
||||||
|
|
Loading…
Reference in New Issue