Copied to clipboard

Flag this post as spam?

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


  • carl.sargunar 6 posts 71 karma points
    Nov 24, 2009 @ 18:53
    carl.sargunar
    1

    How to view the raw data when creating XSLTs

    Hi

    I'd like to be able to see the raw data I'm writing an XSLT for some specific navigation functionality we need, but I'm finding it difficult without being able to view the raw xml so I know what I'm working with. Is there any way of viewing the raw XML that is fed into the XSLTs in any way Maybe a webservice, or perhaps a specific XSLT or a user control written as a module?

    thanks

    Carl

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Nov 24, 2009 @ 19:04
    Chris Houston
    2

    Hi Carl,

    The source XML file is called umbraco.config and can be found in the Websiteroot/data/ folder, this is probably the best way to discover what you are playing with.

    Also useful XSLT is the following statement:

    <xsl:copy-of select="$currentPage"/>

    This will return the current node and all it's children ( if you view source ) obviously you can select a different node and do the same.

    Cheers,

    Chris

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Nov 24, 2009 @ 19:04
    Sebastiaan Janssen
    1

    I usually do something like this (the "." is the currentnode, you could replace it by $currentPage if appropriate:

     

    <textarea>
     <xsl:copy-of select="." />
    </textarea>
  • carl.sargunar 6 posts 71 karma points
    Nov 24, 2009 @ 20:18
    carl.sargunar
    0

    Thanks folks - that helps a heap

  • Murray Roke 503 posts 966 karma points c-trib
    Nov 24, 2009 @ 21:53
    Murray Roke
    0

    Hi Carl

    I suggest you mark one of the correct solutions so we know you've got it sorted, That will save time for people trying to help :-)

    Cheers.
    Murray.

  • carl.sargunar 6 posts 71 karma points
    Nov 25, 2009 @ 02:05
    carl.sargunar
    0

    Will do

Please Sign in or register to post replies

Write your reply to:

Draft