summaryrefslogtreecommitdiffstats
path: root/fix/hfList.xsl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /fix/hfList.xsl
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--fix/hfList.xsl31
1 files changed, 31 insertions, 0 deletions
diff --git a/fix/hfList.xsl b/fix/hfList.xsl
new file mode 100644
index 00000000..b3f3beab
--- /dev/null
+++ b/fix/hfList.xsl
@@ -0,0 +1,31 @@
+<!--
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="text" encoding="UTF-8"/>
+
+ <xsl:template match="text()"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+</xsl:template>
+
+<!--
+ <xsl:value-of select="@number" />, <xsl:value-of select="@name" />,
+-->
+
+<xsl:template match="fix">
+<xsl:variable name="max_tag">
+ <xsl:for-each select="fields/field/@number">
+ <xsl:sort data-type="number" order="descending" />
+ <xsl:if test="position() = 1">
+ <xsl:value-of select="number(.)" />
+ </xsl:if>
+ </xsl:for-each>
+</xsl:variable>#define FIX_<xsl:value-of select="@major"/><xsl:value-of select="@minor"/> <xsl:text> </xsl:text>
+<xsl:value-of select="$max_tag"/>
+<xsl:text>
+</xsl:text>
+</xsl:template>
+
+</xsl:stylesheet>