Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Images

  1. #1
    New to the CF scene
    Join Date
    Mar 2003
    Location
    Scotland
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Images

    Hi

    I'm using an asp page to display the contents of an XML page combined with an XSL stylesheet.

    How would you display an image in the XSL page so that it was displayed on the ASP page?

    Robert Bell.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    By parsing it into an <img/> tag.

    How much XSL do you already know ... are you having a specific problem with images, or you want to know how to write XSL and you're using the image as an example?
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    Amazingstoke, UK
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this is the XSL code for including images - note it is an XSL'd version of the normal img src tag in html.

    <xsl:element name="img">
    <xsl:attribute name="src"><xsl:value-of select="PICTURE"/></xsl:attribute>
    </xsl:element>

    the PICTURE is the name of the XML container where you have the address or name of the image eg:

    <PICTURE>image1.gif</PICTURE>
    Jase/djmothra

  • #4
    New to the CF scene
    Join Date
    Mar 2003
    Location
    Scotland
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    Thanks for your help.


  •  

    Posting Permissions

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