SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Nov 2001
    Location
    Fort Lauderdale
    Posts
    814
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using XSL to make a image appear in a XML doc

    Okay I have a small problem.

    I currently got all my information in the XML doc appearing perfectly using the html and formating from the XSL doc.

    The only problem i'm encountering is making the images for my records appear. I tried multiple things in the XSL sheet, but came up with nothing but broken images or unvalidatable XSL sheet.

    Can someone point me in the right direction?

  2. #2
    SitePoint Guru
    Join Date
    Nov 2001
    Location
    Fort Lauderdale
    Posts
    814
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I figured out the answer.

    Heres the code if anyone else needs it:
    <A>

    <xsl:attribute name="href">

    <xsl:value-of select="image"/>

    </xsl:attribute>

    <img>

    <xsl:attribute name ="src">

    <xsl:value-of select="image"/>

    </xsl:attribute>

    </img>

    </A>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •