diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-01-20 18:32:23 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-01-20 18:32:23 +0000 |
commit | 48cef7c61af8956238dc0710ea6ab32ed670bf68 (patch) | |
tree | 51e6881f42a43d0cfe87c20477e51317ac9c1b3d /fix/hfField.xsl | |
parent | 1a182e2a7957da396a11e109efd42bf2370e51b7 (diff) | |
download | wireshark-48cef7c61af8956238dc0710ea6ab32ed670bf68.tar.gz wireshark-48cef7c61af8956238dc0710ea6ab32ed670bf68.tar.bz2 wireshark-48cef7c61af8956238dc0710ea6ab32ed670bf68.zip |
Enhance FIX generator
* Remove whitespace and tab
* Add information how to generate packet-fix.h (in top of packet-fix.h)
Regenerate packet-fix.h
svn path=/trunk/; revision=47178
Diffstat (limited to 'fix/hfField.xsl')
-rw-r--r-- | fix/hfField.xsl | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/fix/hfField.xsl b/fix/hfField.xsl index 3a01365ef1..15e1817cca 100644 --- a/fix/hfField.xsl +++ b/fix/hfField.xsl @@ -2,22 +2,34 @@ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <xsl:output method="text" encoding="UTF-8"/> +<xsl:output method="text" encoding="UTF-8"/> - <xsl:template match="text()"/> +<xsl:template match="text()"/> - <xsl:template match="/"> +<xsl:template match="/"> static hf_register_info hf_FIX[] = { - <xsl:apply-templates/> - }; +<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: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 } |