summary: Render package descriptions on entry form
parent
eff8a01a42
commit
dd42267bc9
|
@ -96,15 +96,24 @@
|
||||||
<!-- generate form fields for each param -->
|
<!-- generate form fields for each param -->
|
||||||
<xsl:for-each-group select="/lv:package/l:dep/preproc:sym[ @type='param' ]"
|
<xsl:for-each-group select="/lv:package/l:dep/preproc:sym[ @type='param' ]"
|
||||||
group-by="@src">
|
group-by="@src">
|
||||||
<xsl:variable name="pkg-name"
|
<xsl:variable name="pkg"
|
||||||
select="preproc:package-name(
|
select="if ( not( @src = '' ) ) then
|
||||||
current-grouping-key(),
|
document( concat( @src, '.xmlo' ), $root-pkg )/lv:*
|
||||||
$root-pkg )" />
|
else
|
||||||
|
()" />
|
||||||
|
|
||||||
|
<xsl:variable name="pkg-display"
|
||||||
|
select="if ( $pkg ) then
|
||||||
|
concat( $pkg/@desc, ' (', $pkg/@name, ')' )
|
||||||
|
else
|
||||||
|
''" />
|
||||||
|
|
||||||
|
<xsl:variable name="pkg-name" select="$pkg/@name" />
|
||||||
|
|
||||||
<fieldset class="param-set">
|
<fieldset class="param-set">
|
||||||
<legend data-pkg-name="{$pkg-name}">
|
<legend data-pkg-name="{$pkg-name}">
|
||||||
<a href="#pkg-{$pkg-name}" class="sym-ref sym-pkg sym-large">
|
<a href="#pkg-{$pkg-name}" class="sym-ref sym-pkg sym-large">
|
||||||
<xsl:value-of select="$pkg-name" />
|
<xsl:value-of select="$pkg-display" />
|
||||||
</a>
|
</a>
|
||||||
</legend>
|
</legend>
|
||||||
|
|
||||||
|
@ -127,18 +136,6 @@
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<xsl:function name="preproc:package-name" as="xs:string">
|
|
||||||
<xsl:param name="src" as="xs:string" />
|
|
||||||
<xsl:param name="root-pkg" as="element( lv:package )"/>
|
|
||||||
|
|
||||||
<xsl:sequence select="
|
|
||||||
if ( not( $src = '' ) ) then
|
|
||||||
document( concat( $src, '.xmlo' ), $root-pkg )/lv:*/@name
|
|
||||||
else
|
|
||||||
''" />
|
|
||||||
</xsl:function>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Generate text and input for a global parameter
|
Generate text and input for a global parameter
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue