diff options
author | Karl Berry <karl@freefriends.org> | 2006-02-13 00:49:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-02-13 00:49:47 +0000 |
commit | 045f872c421bb96d9e680ccd7f79c823cef10521 (patch) | |
tree | 20483574ec8846ce1adb25e905f4a0b4e2505a41 /Build/tools/tpm2binarytar.xsl | |
parent | a1e47d103e66e2a947105dd7378e8df3918c3f62 (diff) |
move Master/Tools to Build/tools
git-svn-id: svn://tug.org/texlive/trunk@1514 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/tools/tpm2binarytar.xsl')
-rw-r--r-- | Build/tools/tpm2binarytar.xsl | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Build/tools/tpm2binarytar.xsl b/Build/tools/tpm2binarytar.xsl new file mode 100644 index 00000000000..fc674a6d3f4 --- /dev/null +++ b/Build/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> |