Copied to clipboard

Flag this post as spam?

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


  • Allan Joey Laluan 24 posts 105 karma points
    Dec 19, 2010 @ 18:26
    Allan Joey Laluan
    0

    Variable sharing between loaded XSLT file and inline XSLT

    Hi,

    Is there a way we can share variables between xslt file (loaded on top of the page) and inline xslt which is called in the <umbraco:item> tag?

     

    Regards,

    AJ

  • Kim Andersen 1447 posts 2197 karma points MVP
    Dec 19, 2010 @ 19:35
    Kim Andersen
    0

    Hi Allan

    You should be able to create a seperate XSLT-file, where you declare the variable(s). Let's say that this file is called sharedVariables.xslt, then you can include this file into your other XSLT files like this:

    <xsl:include href="/xslt/sharedVariables.xslt"/>

    then you'll be able to use the variable(s) declared once in the sharedVariables.xslt in all of the other files that has the file included.

    Does it make sense?

    /Kim A

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies