Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I need to take the name of an attribute and just display its first letter. In C# I would use substring - how can I do it with Umbraco?
thanks
substring! Try
<xsl:value-of select="substring($string,1,1)" />
More examples here -> http://www.w3schools.com/Xpath/xpath_functions.asp
Dan
Thanks, much appreciated!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How can I trim a string returned from a node in XLST?
Hi
I need to take the name of an attribute and just display its first letter. In C# I would use substring - how can I do it with Umbraco?
thanks
substring! Try
<xsl:value-of select="substring($string,1,1)" />
More examples here -> http://www.w3schools.com/Xpath/xpath_functions.asp
Dan
Thanks, much appreciated!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.