Skip to content

Instantly share code, notes, and snippets.

@aaronmcadam
Created September 15, 2010 10:10
Show Gist options
  • Save aaronmcadam/580505 to your computer and use it in GitHub Desktop.
Save aaronmcadam/580505 to your computer and use it in GitHub Desktop.
This will select the first nodename from a list of nodes dynamically
<!-- This will select the first nodename from a list of nodes dynamically for future reference -->
<xsl:variable name="nodename" select="'nodename'"/>
<xsl:value-of select="./*[local-name() = $nodename]" disable-output-escaping="yes" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment