new approach to logging database access and upgraded adodb
[openemr.git] / library / adodb / xsl / remove-0.2.xsl
blob9b10a528c1d6a19609670a69d34a3c37b072fd0f
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 <xsl:output method="xml" indent="yes" omit-xml-declaration="no" encoding="UTF-8"/>
7 <!-- Schema -->
8 <xsl:template match="/">
9 <xsl:comment>
10 ADODB XMLSchema
11 http://adodb-xmlschema.sourceforge.net
12 </xsl:comment>
14 <xsl:comment>
15 Uninstallation Schema
16 </xsl:comment>
18 <xsl:element name="schema">
19 <xsl:attribute name="version">0.2</xsl:attribute>
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>
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>
33 <xsl:if test="string-length(@platform) > 0">
34 <xsl:attribute name="platform"><xsl:value-of select="@platform"/></xsl:attribute>
35 </xsl:if>
37 <xsl:if test="string-length(@version) > 0">
38 <xsl:attribute name="version"><xsl:value-of select="@version"/></xsl:attribute>
39 </xsl:if>
41 <xsl:apply-templates select="descr[1]"/>
43 <xsl:element name="DROP"/>
44 </xsl:element>
45 </xsl:if>
46 </xsl:template>
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>