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?
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.
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
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:
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
I usually do something like this (the "." is the currentnode, you could replace it by $currentPage if appropriate:
Thanks folks - that helps a heap
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.
Will do
is working on a reply...