[TASK] Update ADOdb to 5.18
[Packages/TYPO3.CMS.git] / typo3 / sysext / adodb / adodb / xsl / remove-0.3.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0"
3         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 >
5         <xsl:output method="xml" indent="yes" omit-xml-declaration="no" encoding="UTF-8"/>
6
7         <!-- Schema -->
8         <xsl:template match="/">
9                 <xsl:comment>
10 ADODB XMLSchema
11 http://adodb-xmlschema.sourceforge.net
12 </xsl:comment>
13
14                 <xsl:comment>
15 Uninstallation Schema
16 </xsl:comment>
17
18                 <xsl:element name="schema">
19                         <xsl:attribute name="version">0.3</xsl:attribute>
20
21                         <xsl:apply-templates select="schema/table">
22                                 <xsl:sort select="position()" data-type="number" order="descending"/>
23                         </xsl:apply-templates>
24                 </xsl:element>
25         </xsl:template>
26
27         <!-- Table -->
28         <xsl:template match="table">
29                 <xsl:if test="count(DROP) = 0">
30                         <xsl:element name="table">
31                                 <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
32
33                                 <xsl:if test="string-length(@platform) > 0">
34                                         <xsl:attribute name="platform"><xsl:value-of select="@platform"/></xsl:attribute>
35                                 </xsl:if>
36
37                                 <xsl:if test="string-length(@version) > 0">
38                                         <xsl:attribute name="version"><xsl:value-of select="@version"/></xsl:attribute>
39                                 </xsl:if>
40
41                                 <xsl:apply-templates select="descr[1]"/>
42
43                                 <xsl:element name="DROP"/>
44                         </xsl:element>
45                 </xsl:if>
46         </xsl:template>
47
48         <!-- Description -->
49         <xsl:template match="descr">
50                 <xsl:element name="descr">
51                         <xsl:value-of select="normalize-space(text())"/>
52                 </xsl:element>
53         </xsl:template>
54 </xsl:stylesheet>