• Get the Flash Player to see the slideshow.
  • Categories

  • Authors

  • Great Quotes

    Simple things should be simple. Complex things should be possible. — Larry Wall - inventor of Perl

Get in touch...

To have a chat about
your CMS needs...

Call us 0207 193 2014
or
Email us on

Building <A href=”…” /> in LiveSite – Revisited

August 14th, 2008 by Richard Aldridge

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.

Leave a Reply

You must be logged in to post a comment.