[Xcb-commit] src
Eamon Walsh
ewalsh at kemper.freedesktop.org
Tue Apr 10 14:04:38 PDT 2007
src/c-client.xsl | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
New commits:
diff-tree eaa380efefd347abcd11a6c24c008686beaf8257 (from 91be36f845352dea7838853d0f98ae144fe571a4)
Author: Eamon Walsh <ewalsh at tycho.nsa.gov>
Date: Tue Apr 10 11:56:06 2007 -0400
Modify new attribute from previous patch so that it is necessary only on
extensions with split names. Tested with diff and found no difference with
previous stylesheet header-file output.
diff --git a/src/c-client.xsl b/src/c-client.xsl
index 24ffe6c..be6aa30 100644
--- a/src/c-client.xsl
+++ b/src/c-client.xsl
@@ -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>
More information about the xcb-commit
mailing list