sharepoint - xslt condition for multiple line of text column -
I have a problem displaying description column data from the list in the data view web part. In fact, a column in the name of the description type of this column in my list has several lines of text that I want, if the length of text in description columns is more than 20 characters then only 20 characters should be displayed or otherwise all characters are not displayed Will be done. I have written the following xslt to do this.
& lt; Xsl: select & gt; & Lt; Xsl: when test = "string-length (description) & gt; 20" & gt; & Lt; Xsl: Select Value = "Substring (@ Description, 1, 20)" /> ... & lt; / Xsl: When & gt; & Lt; XSL: otherwise & gt; & Lt; Xsl: Select value = "@ description" disable-output-escape = "yes" /> & Lt; / XSL: otherwise & gt; & Lt; / XSL: Select & gt;
The same thing is working for the column whose type is a line of text, someone can tell me how to get this column has multiple lines of text < / P>
Comments
Post a Comment