Mercurial > repos > greg > gregs_test_repo
diff CADDSuite-1.0.1/data/OpenBabel/space-groups.xsl @ 28:05d77a8faef7
Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_MacOS_10.6.tar.gz
author | greg |
---|---|
date | Tue, 15 Nov 2011 14:55:48 -0500 |
parents | 389056b8864a |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CADDSuite-1.0.1/data/OpenBabel/space-groups.xsl Tue Nov 15 14:55:48 2011 -0500 @@ -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>