CopyOf

Copies the result of an XPath expression as-is, preserving node structure. Analogous to xsl:copy-of in XSLT.

Child elements

(none)

Parent elements

A, B, I, Li, Paragraph, SetVariable, Span, U

Attributes

select (XPath expressions)
XPath expression whose result is passed through unchanged.

Remarks

Unlike Value, which always converts to text, CopyOf preserves the original node type (HTML nodes, XML elements, etc.).

Use this command to pass structured content from sd:decode-html() or XML data into Paragraph, HTML, or other elements.

Example

<Paragraph>
  <CopyOf select="sd:decode-html(.)" />
</Paragraph>

See also