Note,
For the title I have use a choose construct
with a choose construct you ca have as many when clauses as you want
For the firstname I could have use an if clause (similar like a choose, but without alternatives,
since you are giving an empty string as an alternative
<xsl:if test="Firstname">
<xsl:value-of select="Firstname"/>
</xsl:if>
but if Firstname is not present, nothing will show up, so you don't need the if clause
and a simple
<xsl:value-of select="Firstname"/>
is sufficient
Note also that you can't have templates nested in eachother
Main Topics
Browse All Topics





by: GertonePosted on 2009-06-22 at 02:59:47ID: 24680896
Select allOpen in new window