Skip to content

Instantly share code, notes, and snippets.

@aimirza
Forked from lindenb/transform.xsl
Created October 25, 2017 18:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aimirza/827401f53a5210d6b046e03aec8f0ee9 to your computer and use it in GitHub Desktop.
Save aimirza/827401f53a5210d6b046e03aec8f0ee9 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