I am using multi item lookup fields in a list (eg: "Data Subjects"). I then have a web part page with a Data View Web part connected to this list.
The data within Lookup fields span the column width but I wish each new item of data to start on a new line for clarity.
Example:
Apples; Pears; Peaches;
I am trying to insert the following XSL into code view:
<xsl:param name="text" select="@Data_x0020_Subjects"/>
<xsl:choose>
<xsl:when test="contains($text, ';')">
<xsl:value-of select="substring-after($text, ';')"/>
<xsl:value-of select="concat(.,'
')"/>
</xsl:when>
</xsl:choose>
</xsl param>
However, I get various errors relating to the location of the XSL: or "keyword xsl:stylesheet may not contain xsl:choose"
Newbie to XSL so any help would be much appreciated!