ahuen
asked on
xpath: how to capitalize the first word
Hi,
I have an xsl file for transforming xml data to html. Does anyone know how to make the first alpahabet in a String to Upper case? i.e
I want the button to show Albert instead of albert
thanks.
xml data
<stuff>
<some>
<name>albert</name>
</some>
</stuff>
xsl code sniplet
<xsl:variable name="somename" select="/stuff/some/name" />
...
....
...
<input type="submit" name="Submit" value="{$somename}"/>
I have an xsl file for transforming xml data to html. Does anyone know how to make the first alpahabet in a String to Upper case? i.e
I want the button to show Albert instead of albert
thanks.
xml data
<stuff>
<some>
<name>albert</name>
</some>
</stuff>
xsl code sniplet
<xsl:variable name="somename" select="/stuff/some/name" />
...
....
...
<input type="submit" name="Submit" value="{$somename}"/>
ASKER
avner,
Please provide more details.
Thanks.
Please provide more details.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<STYLE>
BUTTON:first-letter {text-transform: uppercase ;font-weight:400; }
</STYLE>
<BUTTON>ahhhhhh !</BUTTON>