Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Shannon 148 posts 171 karma points
    Feb 02, 2011 @ 06:44
    Shannon
    0

    Creating an image link removes the end tag "/" and throws validation error.

    I have one XSLT file

    <a href="{umbraco.library:NiceUrl(@id)}"><img src="{$crop/@url}" alt="{@nodeName}" class="img" /></a>

    and one HTML Tag

    <br />

     

    Every time I use these two, the end tag "/" disappears. Am I doing someing wrong?

  • Shannon 148 posts 171 karma points
    Feb 02, 2011 @ 07:03
    Shannon
    0

    Just to clarify, the "/" is removed from the img and I am running 4.6.1

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 8x admin c-trib
    Feb 02, 2011 @ 09:19
    Chriztian Steinmeier
    1

    Hi Shannon,

    This happens when this line is missing from your XSLT:

    <xsl:output method="xml" omit-xml-declaration="yes" />

    (- and some stars align to make the XSLT gues you're outputting HTML :-) - or, if the method is specifically set to "html".

    Try to add the line before the <xsl:param name="currentPage" /> line and you should be good to go.

    /Chriztian

  • Shannon 148 posts 171 karma points
    Feb 02, 2011 @ 09:41
    Shannon
    0

    I had HTML instead of XML. Thanks.

  • Shannon 148 posts 171 karma points
    Feb 04, 2011 @ 18:23
    Shannon
    0

    Just to rehash this issue, I also have a <object> in the middle of blog roll I use to display ads in the middle.

    <xsl:if test="position() = 3"><div><object data="frontpage_blogroll_center_top_728x90" type="text/html" width="735" height="95" style="overflow:hidden; width: 735px; height: 100px; border:0px; padding-top:35px;" ></object></div></xsl:if>
    <xsl:if test="position() = 12"><div><object data="frontpage_blogroll_center_bottom_728x90" type="text/html" width="735" height="95" style="overflow:hidden; width: 735px; height: 100px; border:0px; padding-top:35px;" ></object></div></xsl:if>     

    When I have the output method set to XML, the page doesn't load properly in Opera/Chrome/Firefox. The page doesn't render past the first object insert. When it's set back to HTML, it works fine, Viewing the source, the browsers download the entire page correctly

     


Please Sign in or register to post replies

Write your reply to:

Draft