⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csvtext.xsl

📁 基于SQL SERVER 2005的SQL查询系统,利用SMO实现数据库的操作以及查询
💻 XSL
字号:
<?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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -