This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Vadim Yanitskiy gerrit-no-reply at lists.osmocom.orgVadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-manuals/+/20474 )
Change subject: vty_reference.xsl: also handle 'global' and 'library' attributes
......................................................................
vty_reference.xsl: also handle 'global' and 'library' attributes
Unfortunately, there is no xsl:function support in XSL 1.0, so
we have to duplicate the existing code :/
For more details about the attribute scopes / types, see:
https://lists.osmocom.org/pipermail/openbsc/2020-October/013278.html
Change-Id: I7f7e6e32c156de24dcc80166a29119e6dda8c169
Related: SYS#4937
---
M vty_reference.xsl
1 file changed, 56 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-manuals refs/changes/74/20474/1
diff --git a/vty_reference.xsl b/vty_reference.xsl
index 414a1a8..d7aaa8b 100644
--- a/vty_reference.xsl
+++ b/vty_reference.xsl
@@ -40,11 +40,66 @@
</listitem>
</varlistentry></variablelist>
+ <!-- Unfortunately, there is no xsl:function support in XSL 1.0 -->
+
+ <!-- Print global attributes (if any) -->
+ <xsl:if test="./vty:attributes[@scope='global']">
+ <variablelist>
+ <varlistentry>
+ <listitem>
+ <para>Global attributes</para>
+ </listitem>
+ </varlistentry>
+ <xsl:for-each select="./vty:attributes[@scope='global']/*">
+ <varlistentry>
+ <listitem>
+ <xsl:choose>
+ <xsl:when test="@flag">
+ <para>Flag: <xsl:value-of select="@flag" /></para>
+ </xsl:when>
+ <xsl:otherwise>
+ <para>Flag: (not assigned)</para>
+ </xsl:otherwise>
+ </xsl:choose>
+ <para><xsl:value-of select="@doc" /></para>
+ </listitem>
+ </varlistentry>
+ </xsl:for-each>
+ </variablelist>
+ </xsl:if>
+
+ <!-- Print library specific attributes (if any) -->
+ <xsl:if test="./vty:attributes[@scope='library']">
+ <variablelist>
+ <varlistentry>
+ <listitem>
+ <para>Library specific attributes</para>
+ </listitem>
+ </varlistentry>
+ <xsl:for-each select="./vty:attributes[@scope='library']/*">
+ <varlistentry>
+ <listitem>
+ <xsl:choose>
+ <xsl:when test="@flag">
+ <para>Flag: <xsl:value-of select="@flag" /></para>
+ </xsl:when>
+ <xsl:otherwise>
+ <para>Flag: (not assigned)</para>
+ </xsl:otherwise>
+ </xsl:choose>
+ <para><xsl:value-of select="@doc" /></para>
+ </listitem>
+ </varlistentry>
+ </xsl:for-each>
+ </variablelist>
+ </xsl:if>
+
+ <!-- Print application specific attributes (if any) -->
<xsl:if test="./vty:attributes[@scope='application']">
<variablelist>
<varlistentry>
<listitem>
- <para>Attributes</para>
+ <para>Application specific attributes</para>
</listitem>
</varlistentry>
<xsl:for-each select="./vty:attributes[@scope='application']/*">
--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-manuals/+/20474
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-gsm-manuals
Gerrit-Branch: master
Gerrit-Change-Id: I7f7e6e32c156de24dcc80166a29119e6dda8c169
Gerrit-Change-Number: 20474
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201007/1fc8a4d1/attachment.htm>