summaryrefslogtreecommitdiff
path: root/Build/cdbuild/tpm2xml.xsl
blob: 9d7eb650ffd74d29850e6e88ddbf7d2e319ff304 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
  xmlns:TPM="http://texlive.dante.de/"  
  version="1.0"
  xmlns:xtfile="http://www.jclark.com/xt/java/java.io.File"
  xmlns:xt="http://www.jclark.com/xt"
  extension-element-prefixes="xt">

<xsl:output method="xml"/>

<xsl:variable name="Master">/texlive/Master/</xsl:variable>

<xsl:variable name="package">
 <xsl:value-of select="/rdf:RDF/rdf:Description/TPM:Name"/>
</xsl:variable>

<xsl:template match="/">
 <xsl:apply-templates select="rdf:Description"/>
</xsl:template>

<!-- default template, identity transform, text normalized -->
<xsl:template match="text()">
    <xsl:value-of select="."/> <!-- could normalize() here -->
  </xsl:template>

<xsl:template match="*|@*|comment()|processing-instruction()">
      <xsl:copy>
          <xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()"/>
      </xsl:copy>
  </xsl:template>
     

</xsl:stylesheet>