Building in LiveSite – Revisited

14 August 2008
by Billy Czajkowska

Instead of :-

<a>
<xsl:attribute name=”href”>
<xsl:value-of select=”Properties/Datum[@ID=’FFactPerformance’]”/>
<xsl:text>?idtype=</xsl:text>
<xsl:value-of select=”//Datum[@ID=’idtype’]”/>
<xsl:text>&fundid=</xsl:text>
<xsl:value-of select=”//Datum[@ID=’fundid’]”/>
</xsl:attribute>
<xsl:attribute name=”id”>tab2</xsl:attribute>
<xsl:attribute name=”name”>tab2</xsl:attribute>
Performance & Risk
</a>

Use this notation :-

<a href=”{Properties/Datum[@ID=’FFactPerformance’]}?
idtype={//Datum[@ID=’idtype’]}&
fundid={//Datum[@ID=’fundid’]}” id=”tab2″ name=”tab2″>
Performance & Risk</a>
Much shorter to type, and easier to remember.

Our Latest News