File: hfList.xsl

package info (click to toggle)
wireshark 1.8.2-5wheezy18
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 196,124 kB
  • sloc: ansic: 2,186,574; xml: 55,064; python: 30,233; perl: 22,353; sh: 13,118; pascal: 5,964; lex: 4,963; cpp: 3,604; makefile: 3,471; yacc: 266; asm: 156; tcl: 35
file content (31 lines) | stat: -rw-r--r-- 802 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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>