Posts Tagged XSLT
Output the source XML with XSLT
Posted by Martin in Tip, Web development on October 9th, 2009
Today I just learned something I’ve been looking for for a while. It’s super simple, but it can be very helpful. For those of us that needs to write and edit XSLT for XML you don’t own and can’t view – in my case from SharePoint. Here is a single line of XSLT that will output the source XML to your page.
<xsl:copy-of select="."/>
That’s it! I told you, super simple.
Remember that you will probably not see the code on the page since the nodes probably won’t be recognized by the browser.