Output the source XML with XSLT


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.

,

  1. No comments yet.
(will not be published)

Spam Protection by WP-SpamFree