<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
You can use a deep copy stylesheet that also considers the
processing instructions.<br>
<br>
This is a modified version of the sample copy stylesheet from the
Oxygen samples (Oxygen/samples/xhtml/copy.xsl):<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<xsl:stylesheet version="1.0"
xmlns:xsl=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/XSL/Transform">"http://www.w3.org/1999/XSL/Transform"</a>><br>
<xsl:output method="xml"/><br>
<!-- Match document --><br>
<xsl:template match="/"><br>
<xsl:apply-templates mode="copy" select="."/><br>
</xsl:template><br>
<!-- Deep copy template --><br>
<xsl:template match="*|text()|@*|processing-instruction()"
mode="copy"><br>
<xsl:copy><br>
<xsl:apply-templates mode="copy" select="@*"/><br>
<xsl:apply-templates mode="copy"/><br>
</xsl:copy><br>
</xsl:template><br>
<!-- Handle default matching --><br>
<xsl:template match="*"/><br>
</xsl:stylesheet><br>
<br>
The only change I made was to the deep copy template. I've added:
processing-instruction()<br>
<xsl:template match="*|text()|@*<b>|processing-instruction()</b>"
mode="copy"><br>
<br>
Regards,<br>
Adrian<br>
<br>
<br>
<div class="moz-cite-prefix">On 22.05.2013 13:17, Ulrike Borinski
wrote:<br>
</div>
<blockquote
cite="mid:C8D4AB91-DE4A-4CAE-B963-BFDC2344F175@ifv-nrw.de"
type="cite">
<pre wrap="">Hello,
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?
Thank you
Ulrike Borinski
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Ulrike Borinski
Dipl.-Designerin
Koordination
Servicestelle Mediengestaltung und Publishing
<a class="moz-txt-link-abbreviated" href="mailto:Borinski@ifv-nrw.de">Borinski@ifv-nrw.de</a>
02331/9330-927
<a class="moz-txt-link-abbreviated" href="http://www.ifv-nrw.de/ifv_gest/lerneinheiten.htm">www.ifv-nrw.de/ifv_gest/lerneinheiten.htm</a>
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Institut für Verbundstudien der Fachhochschulen Nordrhein-Westfalens - IfV NRW
Im Alten Holz 131
58093 Hagen
_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Adrian Buza
oXygen XML Editor and Author Support
Tel: +1-650-352-1250 ext.202
Fax: +40-251-461482
<a class="moz-txt-link-abbreviated" href="mailto:support@oxygenxml.com">support@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a></pre>
</body>
</html>