Copied to clipboard

Flag this post as spam?

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


  • ds 191 posts 223 karma points
    Jul 27, 2010 @ 13:16
    ds
    0

    How to add xslt file as xml into flash variable?

    Hi everyone,

    I have started to use umbraco for a month and come across with a problem I could not solve.

    I created an xslt file which genarates xml output for flash carousel but the flash variable needs that xml file. but I could not figure out how I can add that xslt file as xml into flash variable.

    I will add some code snippet which will help you guide me

        <script type="text/javascript">
            var flashvars = {
                initialURL: escape(document.location),
            paramXMLPath: "flash/param.xml",
            xmlFilePath: " "
            }
            var params = {
                bgcolor: "#000000",
                loop: "true",
                salign: "lt",
                allowfullscreen: "true"
            }
            var attributes = {}
            swfobject.embedSWF("flash/slideshowpro.swf", "flashcontent", "650", "400", "9.0.115.0", false, flashvars, params, attributes);  
        </script>

    thanks

    deniz

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Jul 27, 2010 @ 16:00
    Matt Brailsford
    0

    Hi Deniz,

    You'll need to turn your XSLT into a macro, then create a simple doc type with associated template that just contains that macro, and finaly, create a page on your site that uses the new doctype. Then when you request your new page, it will load the template, which in turn loads the macro, which generates the XML output, which flash can load.

    Many thanks

    Matt

  • ds 191 posts 223 karma points
    Jul 28, 2010 @ 08:16
    ds
    0

    Hi Matt,

    Thanks for the info. Sometimes to think simple is the key...

  • cp 21 posts 42 karma points
    Oct 04, 2011 @ 05:28
    cp
    0

    ds,

    Do you mind sharing the xslt you used to generate the slideshowpro xml? Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft