csvtext.xsl
来自「基于SQL SERVER 2005的SQL查询系统,利用SMO实现数据库的操作以」· XSL 代码 · 共 57 行
XSL
57 行
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/root">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="s">
<xsl:apply-templates />
<br />
</xsl:template>
<xsl:template match="h">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="r">
<xsl:apply-templates />
<br />
</xsl:template>
<xsl:template match="r/d">
<xsl:variable name="pos" select="position()" />
<xsl:variable name="type" select="../../h/c[$pos]/@t" />
<xsl:variable name="string" select="contains($type,'char')" />
<xsl:variable name="val" select="." />
<xsl:if test ="$string='true'">"</xsl:if>
<xsl:value-of select="$val" />
<xsl:if test ="$string='true'">"</xsl:if>
<xsl:if test ="$pos!=last()">, </xsl:if>
</xsl:template>
<xsl:template match="truncate">
Result truncated !
<br />
</xsl:template>
<xsl:template match="h/c">
</xsl:template>
<xsl:template match="resultsetX">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="error">
Error !
<br />
<xsl:apply-templates />
</xsl:template>
<xsl:template match="error/msg">
<xsl:value-of select="." />
<br />
</xsl:template>
</xsl:stylesheet>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?