forked from osmocom/wireshark
871294f998
Duplicate name/blurb removal from packet-fix.h (and template) svn path=/trunk/; revision=28982
26 lines
727 B
XML
26 lines
727 B
XML
<!--
|
|
-->
|
|
|
|
<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="/">
|
|
static hf_register_info hf_FIX[] = {
|
|
<xsl:apply-templates/>
|
|
};
|
|
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="fields">
|
|
<xsl:for-each select="field">
|
|
<xsl:sort select="@number" data-type="number"/>
|
|
{ &fix_fields[<xsl:value-of select="position( ) -1" />].hf_id,
|
|
{ "<xsl:value-of select="@name"/> (<xsl:value-of select="@number"/>)", "fix.<xsl:value-of select="@name"/>",
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
|
NULL, HFILL }
|
|
},</xsl:for-each></xsl:template>
|
|
</xsl:stylesheet>
|