Skip to content

Instantly share code, notes, and snippets.

@lindenb
Created October 24, 2017 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lindenb/04ed876dc6581f33f19682968ae37bb5 to your computer and use it in GitHub Desktop.
Save lindenb/04ed876dc6581f33f19682968ae37bb5 to your computer and use it in GitHub Desktop.
<?xml version='1.0' encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:for-each select="ROOT/SAMPLE/SAMPLE_ATTRIBUTES/SAMPLE_ATTRIBUTE">
<xsl:value-of select="../../@accession"/>|<xsl:value-of select="TAG"/>|<xsl:value-of select="VALUE"/><xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment