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


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



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.



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

Free Stylus Studio XML Training:
W3C Member