Mercurial > repos > marcel > caddsuite_mac10_6
diff CADDSuite-1.5/data/OpenBabel/space-groups.xsl @ 7:bfab27640f5e draft
CADDSuite version 1.5
author | Marcel Schumann <schumann.marcel@gmail.com> |
---|---|
date | Tue, 24 Jul 2012 11:13:59 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CADDSuite-1.5/data/OpenBabel/space-groups.xsl Tue Jul 24 11:13:59 2012 -0400 @@ -0,0 +1,29 @@ +<xsl:stylesheet version = '1.0' + xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> +<xsl:output method="text"/> + +<xsl:template match="/"> + <xsl:apply-templates select="//group"/> +</xsl:template> + +<xsl:template match="group"> + <xsl:value-of select="@id"/> + <xsl:text> </xsl:text> + <xsl:value-of select="@Hall"/> + <xsl:text> </xsl:text> + <xsl:if test="@HMs"> + <xsl:value-of select="@HMs"/> + <xsl:text>,</xsl:text> + </xsl:if> + <xsl:value-of select="@HM"/> + <xsl:text> </xsl:text> + <xsl:apply-templates select="transform"/> + <xsl:text> </xsl:text> +</xsl:template> + +<xsl:template match="transform"> + <xsl:value-of select="."/> + <xsl:text> </xsl:text> +</xsl:template> + +</xsl:stylesheet>