metastudentPkg/lib/groupB/perl/parse_GO_hierarchy.xslt
raw| 1 | <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> |
| 2 | <xsl:output method="text" omit-xml-declaration="yes"/> |
| 3 | <xsl:template match="/">#term is_a |
| 4 | <xsl:for-each select="obo/term"> |
| 5 | <xsl:value-of select="id"/> |
| 6 | <xsl:text> </xsl:text> |
| 7 | <xsl:for-each select="is_a"> |
| 8 | <xsl:sort select="."/> |
| 9 | <xsl:value-of select="."/> |
| 10 | <xsl:text> </xsl:text> |
| 11 | </xsl:for-each> |
| 12 | <xsl:text> |
| 13 | </xsl:text> |
| 14 | </xsl:for-each> |
| 15 | </xsl:template> |
| 16 | </xsl:stylesheet> |