Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / fix / Values.xsl
blobd95a5f07f1641ffd2f0f5729d9135eb7a2c3b64f
1 <!--
2 Syntax: xsltproc Values.xsl FIX44.xml
3 -->
5 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
6 <xsl:output method="text" encoding="UTF-8"/>
8 <xsl:template match="text()"/>
9 <xsl:template match="/">/* DO NOT EDIT
10 * This file is autogenerated
11 * Look fix/README for more information how to generate this file
15 typedef struct _fix_field {
16 int tag; /* FIX tag */
17 int type; /* */
18 const void *table;
19 } fix_field;
21 <xsl:apply-templates/>
23 </xsl:template>
25 <!--
26 translate(@description,$uppercase,$smallcase)
27 -->
29 <xsl:variable name="smallcase" select="'abcdefghijklmnopqrstuvwxyz'" />
30 <xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
32 <xsl:template match="fix/fields">
33 <xsl:for-each select="field[value]">
34 <xsl:variable name="val_type" >
35 <xsl:choose>
36 <xsl:when test="@type='STRING'"> string_string </xsl:when>
37 <xsl:when test="@type='MULTIPLESTRINGVALUE'"> string_string </xsl:when>
38 <xsl:otherwise> value_string </xsl:otherwise>
39 </xsl:choose>
40 </xsl:variable>
41 static const <xsl:copy-of select="$val_type" /> <xsl:value-of select="@name"/>_val[] = {<xsl:for-each select="value"> <xsl:choose>
42 <xsl:when test="../@type='INT'">
43 { <xsl:value-of select="@enum"/>, "<xsl:value-of select="translate(@description,'_',' ')"/>" },</xsl:when>
44 <xsl:when test="../@type='STRING'">
45 { "<xsl:value-of select="@enum"/>", "<xsl:value-of select="translate(@description,'_',' ')"/>" },</xsl:when>
46 <xsl:when test="../@type='MULTIPLESTRINGVALUE'">
47 { "<xsl:value-of select="@enum"/>", "<xsl:value-of select="translate(@description,'_',' ')"/>" },</xsl:when>
48 <xsl:otherwise>
49 { '<xsl:value-of select="@enum"/>', "<xsl:value-of select="translate(@description,'_',' ')"/>" },</xsl:otherwise>
50 </xsl:choose>
51 </xsl:for-each>
52 { 0, NULL }
55 </xsl:for-each>
56 </xsl:template>
58 <xsl:template match="fix/messages">
59 static const string_string messages_val[] = {<xsl:for-each select="message">
60 { "<xsl:value-of select="@msgtype"/>", "<xsl:value-of select="@name"/>" },</xsl:for-each>
61 { 0, NULL }
63 </xsl:template>
65 </xsl:stylesheet>