Modify new attribute from previous patch so that it is necessary only on
authorEamon Walsh <ewalsh@tycho.nsa.gov>
Tue, 10 Apr 2007 15:56:06 +0000 (11:56 -0400)
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>
Tue, 10 Apr 2007 15:56:06 +0000 (11:56 -0400)
extensions with split names.  Tested with diff and found no difference with
previous stylesheet header-file output.

src/c-client.xsl

index 24ffe6c..be6aa30 100644 (file)
@@ -100,13 +100,13 @@ authorization from the authors.
       <xsl:if test="/xcb/@extension-name">
        <xsl:text>_</xsl:text>
        <xsl:choose>
-         <xsl:when test="/xcb/@extension-oneword = 'true' or /xcb/@extension-oneword = '1'">
-           <xsl:value-of select="translate(/xcb/@extension-name, $ucase, $lcase)"/>
-         </xsl:when>
-         <xsl:otherwise>
+         <xsl:when test="/xcb/@extension-multiword = 'true' or /xcb/@extension-multiword = '1'">
            <xsl:call-template name="camelcase-to-underscore">
              <xsl:with-param name="camelcase" select="/xcb/@extension-name" />
            </xsl:call-template>
+         </xsl:when>
+         <xsl:otherwise>
+           <xsl:value-of select="translate(/xcb/@extension-name, $ucase, $lcase)"/>
          </xsl:otherwise>
        </xsl:choose>
       </xsl:if>