[Xcb] XCB naming conventions technical problems
Vincent Torri
vtorri at univ-evry.fr
Fri Sep 15 09:25:33 PDT 2006
Hey,
I'm facing that problem: I have to replace a string, say TotoTata to
toto_tata, that is, I have to insert a _ before each upper case letter,
except the first one. Does someone know how to do that with xslt ?
I have to use it in that function :
<func:function name="xcb:struct-name">
<xsl:param name="name" />
<func:result>
<xsl:text>xcb_</xsl:text>
<xsl:if test="$ext">
<xsl:value-of select="translate($ext, $ucase, $lcase)" />
<xsl:text>_</xsl:text>
</xsl:if>
<xsl:value-of select="$name" />
</func:result>
</func:function>
It's $name that must be transformed.
Thank you for your help
Vincent
More information about the Xcb
mailing list