XSLT is absolutely not my best :-)
But I'm trying to build a list template in xslt, because I want it to be with picture shown, only link to detail on the name, and a few other informations only shown as text.
I have grabbed a little here and there, also from this forum, but now I'm struggling with an expression like this:
<xsl:choose>
<xsl:when test="starts-with(Row.Value, '/Billeder/ungebanken')">
<a href="{Row.DetailUrl}">
<img>
<xsl:attribute name="src">http://www.uu-herning.dk/admin/public/getimage.aspx?image=Files<xsl:apply-templates select="Row.Value" />&width=30&height=40</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
</img>
</a>
</xsl:when>
<xsl:when test = "Row.Column.Name = '@stamkort_Navn'">
<a href="{Row.DetailUrl}">
<xsl:apply-templates select="Row.Value" />
</a>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="Row.Value" />
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:template>
To my surprise, the image thing works - but the rest...
I can't really find an example that matches, so now I'm asking you all for help? What is the right way to reach e.g. the name input "stamkort_Navn"?
Kind regards from a non-xslt-expert!
Developer forum
Data List - how to reach different inputs in list template (xslt)
Replies
You must be logged in to post in the forum