[Xcb] XCB naming conventions technical problems

Vincent Torri vtorri at univ-evry.fr
Fri Sep 15 09:25:33 PDT 2006


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" />
       <xsl:if test="$ext">
         <xsl:value-of select="translate($ext, $ucase, $lcase)" />
       <xsl:value-of select="$name" />

It's $name that must be transformed.

Thank you for your help


More information about the Xcb mailing list