diff options
author | Karl Berry <karl@freefriends.org> | 2005-12-28 00:04:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2005-12-28 00:04:28 +0000 |
commit | e6faeef3e4205722d36bbbb86b3b3390ab6527be (patch) | |
tree | b6bf2abd8e881f40beaca430df2e1c34c02c19ab /Master/Tools/tpm2binarytar.xsl | |
parent | 577983747d8680b8defbfdd03a9d50bad6fd54b7 (diff) |
trunk
git-svn-id: svn://tug.org/texlive/trunk@5 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/Tools/tpm2binarytar.xsl')
-rw-r--r-- | Master/Tools/tpm2binarytar.xsl | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Master/Tools/tpm2binarytar.xsl b/Master/Tools/tpm2binarytar.xsl new file mode 100644 index 00000000000..fc674a6d3f4 --- /dev/null +++ b/Master/Tools/tpm2binarytar.xsl @@ -0,0 +1,55 @@ +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:exsl="http://exslt.org/common" + exclude-result-prefixes="exsl" + extension-element-prefixes="exsl" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:TPM="http://texlive.dante.de/" + version="1.0"> + +<xsl:output method="text" omit-xml-declaration="yes"/> +<xsl:param name="Root"/> + +<xsl:strip-space elements="*"/> + +<xsl:template match="/"> + <exsl:document method="text" href="{$Root}{//TPM:Name}.list"> + <xsl:if test=".//TPM:BinFiles/text()"> + <xsl:for-each select=".//TPM:BinFiles"> + <exsl:document method="text" href="{$Root}/{//TPM:Name}-{@arch}.list"> + <xsl:apply-templates select="text()"/> + <xsl:text> </xsl:text> + </exsl:document> + </xsl:for-each> + </xsl:if> + <xsl:if test=".//TPM:DocFiles/text()"> + <xsl:apply-templates select=".//TPM:DocFiles"/> + <xsl:text> </xsl:text> + </xsl:if> + <xsl:if test=".//TPM:SourceFiles/text()"> + <xsl:apply-templates select=".//TPM:SourceFiles"/> + <xsl:text> </xsl:text> + </xsl:if> + <xsl:if test=".//TPM:RunFiles/text()"> + <xsl:apply-templates select=".//TPM:RunFiles"/> + <xsl:text> </xsl:text> + </xsl:if> +</exsl:document> +</xsl:template> + +<xsl:template match="TPM:BinFiles/text()"> + <xsl:value-of select="translate(normalize-space(.),' ',' ')"/> +</xsl:template> + +<xsl:template match="TPM:DocFiles"> + <xsl:value-of select="translate(normalize-space(.),' ',' ')"/> +</xsl:template> + +<xsl:template match="TPM:RunFiles"> + <xsl:value-of select="translate(normalize-space(.),' ',' ')"/> +</xsl:template> + +<xsl:template match="TPM:SourceFiles"> + <xsl:value-of select="translate(normalize-space(.),' ',' ')"/> +</xsl:template> + +</xsl:stylesheet> |