[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Moving (promoting) XML elements through XSL


Subject: Re: [xsl] Moving (promoting) XML elements through XSL
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 30 Jun 2006 14:43:49 +0100

> How could I output the title element above the prolog element?


process title, insert your prolog, then process body

so instead of

                       <prolog>
                       .....
                      </prolog>
                      <xsl:apply-templates select="node()"/>


do

                      <xsl:apply-templates select="title"/>
                       <prolog>
                       .....
                      </prolog>
                      <xsl:apply-templates select="body"/>

David


Current Thread