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"/>
8 <xsl:template match=
"/">
11 http://adodb-xmlschema.sourceforge.net
18 <xsl:element name=
"schema">
19 <xsl:attribute name=
"version">0.3</xsl:attribute>
21 <xsl:apply-templates select=
"schema/table">
22 <xsl:sort select=
"position()" data-type=
"number" order=
"descending"/>
23 </xsl:apply-templates>
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>
37 <xsl:if test=
"string-length(@version) > 0">
38 <xsl:attribute name=
"version"><xsl:value-of select=
"@version"/></xsl:attribute>
41 <xsl:apply-templates select=
"descr[1]"/>
43 <xsl:element name=
"DROP"/>
49 <xsl:template match=
"descr">
50 <xsl:element name=
"descr">
51 <xsl:value-of select=
"normalize-space(text())"/>