xsl:copy-of

Inserts the value of an expression into the result tree, without first converting it to a string.

Format

<xsl:copy-of select = "expression" />
               

            

Description

The required select attribute contains an expression. When the result of evaluating the expression is a result tree fragment, the XSLT processor copies the complete fragment into the result tree. When the result is a node set, the XSLT processor copies all nodes in the set, together with their contents, in document order into the result tree. When the result is of any other type, the XSLT processor converts the result to a string and then inserts the string into the result tree in the same way that xsl:value-of does.

Tip

 

You can also use xsl:sequence to add atomic values to a sequence. See xsl:sequence for more information.

XPath Introduction - Using XPath Queries to Extract Data from XML Documents

The XPath introduction covers how to use XPath code completion, XPath syntax highlighting, support for XPath 2.0 functions and XML namespaces to simplify your next XPath application.

XML Schema Library

The Stylus Studio XML Schema Library provides a detailed reference of many of the world's most commonly used XML vocabularies in an easy-to-read format.

Television

Television

XML Grid View

The XML Grid View is a visual interface for editing tablular data structures using an intuitive spreadsheet-like interface.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member