Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • manwood 87 posts 109 karma points
    Mar 07, 2010 @ 13:31
    manwood
    0

    what is wrong with this statement?

      <xsl:if test="$currentPage/@website != ''">
       Website: <a href="{$website}" target="blank" /><xsl:value-of select="$website"/></a>
      </xsl:if>

     

    The parser is moaning about the '<a/>' closing tag, when it wants </xsl:if>

     

    thanks for any advice

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 07, 2010 @ 13:45
    Peter Dijksterhuis
    0

    Hi,

    seems like you have a / in your <a> declaration (right after target=blank). Remove that and it'll parse fine.

    Peter

Please Sign in or register to post replies

Write your reply to:

Draft