Copied to clipboard

Flag this post as spam?

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


  • jdelagoutte 13 posts 26 karma points
    May 28, 2009 @ 17:05
    jdelagoutte
    0

    RenderMacroContent to nodes

    Hi all,

    I've got a macro "myMacro"calling "myMacro.xslt" that render an xml file

    [code]
    ]>

    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:umbraco.library="urn:umbraco.library"
    exclude-result-prefixes="msxml umbraco.library ">






    [/code]

    I want to use the rendering of this macro inside another xslt file and navigate into the

  • Darren Ferguson 1022 posts 3258 karma points MVP c-trib
    Jun 01, 2010 @ 14:15
    Darren Ferguson
    0

    I have the same issue. Can anyone help?

  • Chriztian Steinmeier 2726 posts 8320 karma points MVP 4x admin c-trib
    Jun 01, 2010 @ 14:27
    Chriztian Steinmeier
    1

    You're actually doing two very different things - RenderMacroContent() returns a string, whereas the variable holds XML that the node-set() function can reinterpret to an XPath-navigable node set.

    You could make the macro-rendering available at its own URL and grab the file with the GetXmlDocumentByUrl() function... that's another HTTP request, but the function has a second "cacheSeconds" argument for caching the result.

    Otherwise, you could create an XSLT extension for this.

    /Chriztian

  • Darren Ferguson 1022 posts 3258 karma points MVP c-trib
    Jun 01, 2010 @ 14:59
    Darren Ferguson
    0

    Yup, OK got it.

    I have an xslt extension to do the job.

    Thanks.

  • 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