|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Moving (promoting) XML elements through XSL
Never mind. I got it to work by adjusting the stylesheet as follows:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output indent="yes"/> <xsl:template match="//topic"> <xsl:copy> <xsl:apply-templates select="@*"/> <prolog> <metadata> <keywords> <indexterm> <xsl:copy-of select="title/indexterm"/> </indexterm> </keywords> </metadata> </prolog> <xsl:apply-templates select="node()"/> </xsl:copy> </xsl:template> <xsl:template match="indexterm[parent::title]"/> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet> Thanks again for the help. Mark On 6/30/06, Mark Peters <flickrmeister@xxxxxxxxx> wrote: Great idea, drkm. Here it is: -- Mark Peters Senior Technical Writer Saba Software
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. 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
|







