mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	mysqltest.xsl BitKeeper file /home/mwagner/work/bk/mysql/mysql-test/xml/xsl/mysqltest.xsl sel000001.xml BitKeeper file /home/mwagner/work/bk/mysql/mysql-test/xml/tests/sel000001.xml README BitKeeper file /home/mwagner/work/bk/mysql/mysql-test/xml/README
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0"?>
 | |
| <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 | |
| 
 | |
| <xsl:output method="text"/>
 | |
| 
 | |
| <xsl:template match="/"><xsl:apply-templates /></xsl:template>
 | |
| 
 | |
| <!-- Main Template -->
 | |
| 
 | |
| <xsl:template match="/test"># <xsl:apply-templates select="@name"/>
 | |
| #
 | |
| # Versions
 | |
| # --------<xsl:apply-templates select="version"/>
 | |
| #
 | |
| # Description
 | |
| # -----------<xsl:apply-templates select="description"/>
 | |
| #
 | |
| 
 | |
| <xsl:apply-templates select="connect"/>
 | |
| 
 | |
| <xsl:apply-templates select="connection"/>
 | |
| 
 | |
| <xsl:apply-templates select="sql"/>
 | |
| 
 | |
| <xsl:apply-templates select="resultfile"/>
 | |
| 
 | |
| </xsl:template>
 | |
| 
 | |
| <!-- End Main Template -->
 | |
| 
 | |
| 
 | |
| <xsl:template match="version">
 | |
| #   <xsl:apply-templates select="@value"/>
 | |
| </xsl:template>
 | |
| 
 | |
| <xsl:template match="description">
 | |
| # <xsl:apply-templates />
 | |
| </xsl:template>
 | |
| 
 | |
| <xsl:template match="connect">
 | |
| connect(<xsl:apply-templates select="@name"/>, <xsl:apply-templates select="@host"/>, <xsl:apply-templates select="@user"/>, <xsl:apply-templates select="@pass"/>, <xsl:apply-templates select="@db"/>, <xsl:apply-templates select="@port"/>, <xsl:apply-templates select="@sock"/>)
 | |
| </xsl:template>
 | |
| 
 | |
| <xsl:template match="connection">
 | |
| <xsl:text>
 | |
| connection </xsl:text><xsl:apply-templates select="@name"/>
 | |
| <xsl:text>
 | |
| </xsl:text>
 | |
| <xsl:apply-templates select="sql"/>
 | |
| <xsl:apply-templates select="resultfile"/>
 | |
| </xsl:template>
 | |
| 
 | |
| <xsl:template match="resultfile">@<xsl:apply-templates select="@name"/><xsl:text> </xsl:text><xsl:apply-templates select="sql"/>
 | |
| </xsl:template>
 | |
| 
 | |
| <xsl:template match="sql">
 | |
| <xsl:apply-templates />;
 | |
| </xsl:template>
 | |
| </xsl:stylesheet>
 |