Thread: XML attributes

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    7
    Rep Power
    0
    How do I output attributes in a xml tag.

    Ex.
    <headline href="http://www.whatever.com"> Whatever </headline>

    I can output the Whatever text in the browser, but I don't know how to ouput the href attribute. I am using xsl in IE 5.0 browser.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Posts
    4
    Rep Power
    0

    Talking


    Everything has to have an xsl attribute defined...
    Ex.

    <a>
    <xsl:attribute name="href">
    <xsl:value-of select="@URL" />
    </xsl:attribute>
    <img border="0">
    <xsl:attribute name="src"><xsl:value-of select="@IMAGE_SRC" />.gif</xsl:attribute>
    </img>
    </a>

    Hope this helps :-)

IMN logo majestic logo threadwatch logo seochat tools logo