HACK: 1. try to match RowsetProperties
[wireshark-wip.git] / fix / hfList.xsl
blobb3f3beab18b095745c67c490d5792177e1e7713e
1 <!--
2 -->
4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
5 <xsl:output method="text" encoding="UTF-8"/>
7 <xsl:template match="text()"/>
9 <xsl:template match="/">
10 <xsl:apply-templates/>
11 </xsl:template>
13 <!--
14 <xsl:value-of select="@number" />, <xsl:value-of select="@name" />,
15 -->
17 <xsl:template match="fix">
18 <xsl:variable name="max_tag">
19 <xsl:for-each select="fields/field/@number">
20 <xsl:sort data-type="number" order="descending" />
21 <xsl:if test="position() = 1">
22 <xsl:value-of select="number(.)" />
23 </xsl:if>
24 </xsl:for-each>
25 </xsl:variable>#define FIX_<xsl:value-of select="@major"/><xsl:value-of select="@minor"/> <xsl:text> </xsl:text>
26 <xsl:value-of select="$max_tag"/>
27 <xsl:text>
28 </xsl:text>
29 </xsl:template>
31 </xsl:stylesheet>