Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: closing image tag

  1. #1
    tabletennisstore is offline Junior Member
    Join Date
    Feb 2009
    Posts
    21

    Default closing image tag

    I have the following code in an xmlpackage:

    <img src="/skins/skin_2/images/arrow_down.jpg" alt="expand" />

    When the page is displayed, it turns to:

    <img src="/skins/skin_2/images/arrow_down.jpg" alt="expand">

    It loses the closing tag. Any idea why this happens?

  2. #2
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Could you tell us what version you're on? and what XML package is it?

  3. #3
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    Hi Jao,

    Please also see : http://forums.aspdotnetstorefront.co...ad.php?t=19842 (7.1.0.0)


    TTFN

    BFG

  4. #4
    MarkC is offline Developer
    Join Date
    Aug 2006
    Posts
    166

    Default

    That's, by design, a behavior of xslt when output method is "html"

    Code:
    <xsl:output method="html"/>
    The reason is for compatibility with older browsers.

    Refer to these links:
    http://www.w3.org/TR/xslt#output
    http://www.ibm.com/developerworks/xm...x-tiphtml.html