×
XSLT 教程XSL 语言XSLT 简介XSLT 浏览器XSLT 转换XSLT <template>XSLT <value-of>XSLT <for-each>XSLT <sort>XSLT <if>XSLT <choose>XSLT ApplyXSLT 客户端XSLT 服务器端XSLT 编辑 XMLXML 编辑器XSLT 总结XSLT 实例XSLT 元素XSLT 函数

XSLT <xsl:copy> 元素


XSLT 元素参考手册XSLT 元素参考手册


定义和用法

<xsl:copy> 元素可创建当前节点的一个副本。

注意:当前节点的 Namespace 节点会被自动复制,但是当前节点的子节点和属性不会被自动复制!


语法

<xsl:copy use-attribute-sets="name-list">

<!-- Content:template -->

</xsl:copy>

属性

属性 描述
use-attribute-sets name-list 可选。如果该节点是元素,则该属性是应用到输出节点的属性集列表,由空格分隔。

实例 1

把 message 节点拷贝到输出文档:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="message">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>

</xsl:stylesheet>

XSLT 元素参考手册XSLT 元素参考手册


分类导航

关注微信下载离线手册

bootwiki移动版 bootwiki
(群号:472910771)