1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2012
    Rep Power

    XSL Stylesheet Image in HREF

    I have the following section in my xslt file that provides a link for each version node in my xml file. If there are more than one, I am getting a blank space after the img tag and before the /a tag which is causing an extra space with an underline to be shown between images.

    <xsl:template match="version">
    <xsl:attribute name="href">
    <xsl:value-of select="filesystemname"/>
    <xsl:attribute name="src">
    The code renders as this:
    <a href="xxxx"><img ... /> </a>

    The space between "/> </a>" is showing an underline with a link when I view the page and does not look good when I have multiple links to be shown.

    The last link appears as <a href="xxxx"><img ... /></a>

    Google docs of an example of what is happening:


    Any help would be appreciated.

    Last edited by Kosmo007; March 5th, 2012 at 01:58 PM. Reason: Added link for image

IMN logo majestic logo threadwatch logo seochat tools logo