Wednesday, March 14, 2012

Substring In DVWP

If we have column with link in the code, like this for example:
<xsl:value-of select=”@Title” />
But in the page it looks like this:
30;#Dolev
We need to set in the code to take only the string after the #. So we will write:
<xsl:value-of select=”{substring-after(@Title,’;#’)}” />.
As same as if it reversed: Dolev#;21 – we will write:
<xsl:value-of select=”{substring-before(@Title,’#;’)}” />.

No comments:

Post a Comment