[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Help with creating Task child of Task
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|