mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
Upgraded to ADOdb 4.5.1. Contains a lot of small fixes and speed-ups.
This commit is contained in:
parent
f5f346a594
commit
fab7e07e19
90 changed files with 1555 additions and 832 deletions
54
lib/adodb/xsl/remove-0.2.xsl
Normal file
54
lib/adodb/xsl/remove-0.2.xsl
Normal file
|
@ -0,0 +1,54 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
>
|
||||
<xsl:output method="xml" indent="yes" omit-xml-declaration="no" encoding="UTF-8"/>
|
||||
|
||||
<!-- Schema -->
|
||||
<xsl:template match="/">
|
||||
<xsl:comment>
|
||||
ADODB XMLSchema
|
||||
http://adodb-xmlschema.sourceforge.net
|
||||
</xsl:comment>
|
||||
|
||||
<xsl:comment>
|
||||
Uninstallation Schema
|
||||
</xsl:comment>
|
||||
|
||||
<xsl:element name="schema">
|
||||
<xsl:attribute name="version">0.2</xsl:attribute>
|
||||
|
||||
<xsl:apply-templates select="schema/table">
|
||||
<xsl:sort select="position()" data-type="number" order="descending"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Table -->
|
||||
<xsl:template match="table">
|
||||
<xsl:if test="count(DROP) = 0">
|
||||
<xsl:element name="table">
|
||||
<xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
|
||||
|
||||
<xsl:if test="string-length(@platform) > 0">
|
||||
<xsl:attribute name="platform"><xsl:value-of select="@platform"/></xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="string-length(@version) > 0">
|
||||
<xsl:attribute name="version"><xsl:value-of select="@version"/></xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:apply-templates select="descr[1]"/>
|
||||
|
||||
<xsl:element name="DROP"/>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Description -->
|
||||
<xsl:template match="descr">
|
||||
<xsl:element name="descr">
|
||||
<xsl:value-of select="normalize-space(text())"/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Loading…
Add table
Add a link
Reference in a new issue