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/tpm2tar.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/tpm2tar.xsl')
-rw-r--r-- | Build/tools/tpm2tar.xsl | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Build/tools/tpm2tar.xsl b/Build/tools/tpm2tar.xsl new file mode 100644 index 00000000000..aa8155445b6 --- /dev/null +++ b/Build/tools/tpm2tar.xsl @@ -0,0 +1,53 @@ +<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"> + <xsl:apply-templates select="text()"/> + <xsl:text> </xsl:text> + </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> |