aboutsummaryrefslogtreecommitdiffstats
path: root/fix/hfField.xsl
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2009-05-26 00:49:38 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2009-05-26 00:49:38 +0000
commitbcbe8aebb536afb0cc9f6a527f3a26ec6c27e684 (patch)
tree9d96d69c98284159294894ee7ca20dad2fc25336 /fix/hfField.xsl
parent74780fae4388438bb292b33182b06c4557a522fa (diff)
From Didier Gautheron via bug 3052:
Add: - FIX 4.0 to 4.4 fields, auto generated with XSLT stylesheets applied on http://www.quickfixengine.org/ xml files (not included quickfixengine code is BSD but xml files have no copyright). - value_string functions for string keys, added to value_string.c. - FIX desegmentation, it doesn't work well with malformed FIX PDU. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28478 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'fix/hfField.xsl')
-rw-r--r--fix/hfField.xsl25
1 files changed, 25 insertions, 0 deletions
diff --git a/fix/hfField.xsl b/fix/hfField.xsl
new file mode 100644
index 0000000000..af059e691e
--- /dev/null
+++ b/fix/hfField.xsl
@@ -0,0 +1,25 @@
+<!--
+-->
+
+<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"/>
+ { &amp;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,
+ "<xsl:value-of select="@name"/> (<xsl:value-of select="@number"/>)", HFILL }
+ },</xsl:for-each></xsl:template>
+</xsl:stylesheet>