####################### temp_选择表使用的SQL语句.xml ################################## <?xml version="1.0" encoding="utf-8" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <html> <head></head> <body> <xsl:for-each select="*/table"> -------------选择表 <xsl:value-of select="@tablename" /> 的SQL语句 <xsl:value-of select="count(*)" />个字段 <br /><pre style="word-wrap:break-word;background-color:gainsboro"> Select <xsl:for-each select="*"> <xsl:text disable-output-escaping="yes"></xsl:text> <xsl:value-of select="normalize-space(@fieldname)" /> <xsl:if test="position() != last()"> , </xsl:if> </xsl:for-each> From <xsl:value-of select="@tablename" /></pre> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet> |