[Home] [By Thread] [By Date] [Recent Entries]
At 2008-12-31 14:00 -0500, Charles Flanders wrote:
I'm creating an XML to XML transform. Transforming a kluged DITA model into standard DITA. I have to transform something called <reference-content> into a <task> child of the root task. You don't show your XSLT, but I suspect you need something like the following to selectively copy what you want in the first task and then construct the second task: <xsl:template match="taskbody">
<taskbody>
<xsl:copy-of select="node()[not(self::reference-content)]"/>
</taskbody>
<task>
<title/>
<taskbody>
<context>
<xsl:copy-of select="reference-content/node()"/>
</context>
</taskbody>
</task>
</xsl:template>I hope this helps. . . . . . . . . . . Ken
|

Cart



