diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /fix/hfField.xsl | |
parent | Initial commit. (diff) | |
download | wireshark-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 'fix/hfField.xsl')
-rw-r--r-- | fix/hfField.xsl | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/fix/hfField.xsl b/fix/hfField.xsl new file mode 100644 index 00000000..15e1817c --- /dev/null +++ b/fix/hfField.xsl @@ -0,0 +1,37 @@ +<!-- +--> + +<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/> + }; + +/* + * Editor modelines + * + * Local Variables: + * c-basic-offset: 4 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * ex: set shiftwidth=4 tabstop=8 expandtab: + * :indentSize=4:tabSize=8:noTabs=true: + */ +</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> |