Copied to clipboard

Flag this post as spam?

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


  • Petr Snobelt 923 posts 1535 karma points
    Sep 09, 2009 @ 21:22
    Petr Snobelt
    0

    Bug: 2 XsltResult in one template with diferent XsltFilename return result of first one

    Hi, I try use 2 xslt results on one template, but it second one - with different XsltFilename render result of first one. Even when I try change XsltFilename of second one to nonexisting filename same behavior occured, it render output of first one.

     

  • Jesper Hauge 298 posts 487 karma points c-trib
    Sep 09, 2009 @ 21:44
    Jesper Hauge
    0

    A little sample code would help - not sure exactly what you're talking about.

    Regards
    .Hauge

  • Tim 225 posts 690 karma points
    Sep 09, 2009 @ 23:12
    Tim
    0

    Do you have two different macros pointing to the same XSLT file?

    Other than that as .Hauge said, we'd need a bit more info!

    Tim

  • Chris Koiak 700 posts 2626 karma points
    Sep 10, 2009 @ 08:41
    Chris Koiak
    0

    Hi Petr,

    Do both controls have different ID's? If not, try that.

    What version are you using? 1.0 or 1.1?

    Otherwise I'll replicate the situation tonight and release an update. Are both controls pointing at xsltfilenames or using the inline xslt?

    Cheers,

    Chris.

  • Petr Snobelt 923 posts 1535 karma points
    Sep 10, 2009 @ 09:50
    Petr Snobelt
    0

    Hi, I use v1.1.

    Code sample - in my template:

    <XsltResult:XsltResult runat="server" XsltFilename="xslt/ADCZList.xslt" />

    <umbraco:Macro Alias="ADCZContent" runat="server"></umbraco:Macro>
    <XsltResult:XsltResult runat="server" XsltFilename="xslt/ADCZContent.xslt" />

    But second XsltResult render same output as first one. I then try macro for verification and it render correct output.

    When I change second result to

    <XsltResult:XsltResult runat="server" XsltFilename="xslt/xxxADCZContent.xslt" />

    It still render output of first xslt result.

  • Petr Snobelt 923 posts 1535 karma points
    Sep 10, 2009 @ 09:56
    Petr Snobelt
    0

    Adding id's solve problem!

    Will be great if id isn't necessery, or add warning to documentation.

    Thank you for help

  • Chris Koiak 700 posts 2626 karma points
    Sep 10, 2009 @ 11:04
    Chris Koiak
    0

    Glad you solved it.

    I added a note to this effect in the update (see top of the project page), but will make it clearer.

    I'll look to remove this restriction in the next release, i'm not happy with this restriction either.

    Chris

  • Petr Snobelt 923 posts 1535 karma points
    Sep 10, 2009 @ 11:27
    Petr Snobelt
    0

    Caching is enabled by default?

  • Chris Koiak 700 posts 2626 karma points
    Sep 10, 2009 @ 11:30
    Chris Koiak
    0

    There's 2 different caching params; one for the xslt loading and another for the resulting html output from the transform.

    The former is on by default, the latter is off by default.

    The 1.1 release was sparked from http://our.umbraco.org/projects/xsltresult/xsltresult-general/3471-Caching

     

Please Sign in or register to post replies

Write your reply to:

Draft