Copied to clipboard

Flag this post as spam?

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


  • Stephan Lonntorp 195 posts 212 karma points
    Jan 26, 2010 @ 09:43
    Stephan Lonntorp
    0

    Output is wrapped in <xml />

    XsltExtension returns content wrapped in a <xml></xml> tag.

  • Stephan Lonntorp 195 posts 212 karma points
    Jan 26, 2010 @ 10:22
    Stephan Lonntorp
    0

    This messes up output in IE8 anyway. Quick-fix workaround:

    umbraco.library:Replace(umbraco.library:Replace(fmautolink:Link($post/data [@alias = 'bodyText']), '&lt;xml&gt;', ''), '&lt;/xml&gt;', '')

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Mar 03, 2010 @ 17:37
    Darren Ferguson
    0

    Hi Stephan, I can't reproduce this. Do you have an example!

  • Stephan Lonntorp 195 posts 212 karma points
    Mar 03, 2010 @ 20:33
    Stephan Lonntorp
    0

    http://blog.bigfinger.se/archive.aspx shows the <xml> right after the <div class="entrytext">...

    This is rendered using:

    <umbraco:Item runat="server" field="bodyText" xslt="fmautolink:Link({0})" XsltDisableEscaping="true" />

    This works though: (Used in the BlogPost template)

    <umbraco:Item runat="server" field="bodyText" xslt="umbraco.library:Replace(umbraco.library:Replace(fmautolink:Link(umbraco.library:Replace({0}, '&amp;nbsp;', ' ')), '&lt;xml&gt;', ''), '&lt;/xml&gt;', '')" XsltDisableEscaping="true" />
Please Sign in or register to post replies

Write your reply to:

Draft