
22 May
2013
22 May
'13
1:17 p.m.
The identity transformation, e.g., <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> copies the input to the output, including processing instructions. (In this case the node() selector matches text(), comment(), element(), and processing-instruction().).) That is, everything but attributes, which are matched by the "@*" (same as attribute::*).
I want to transform some XML-Documents containing some Track Changes Markup, <?oxy_delete?> for example. I need a deep copy of the document. How can I preserve these PIs during a XSLT-Transformation?