Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: How do get the root node? >Thread Next - Re: How do get the root node? Re: How do get the root node?To: NULL Date: 3/4/2008 4:09:00 PM
tshad wrote:
> I forgot to add the xlst file I am using:
> <xsl:template match="/">
> <root_node>
> <dataset>
> <xsl:apply-templates>
> <xsl:sort select="form/@primary" order="descending"/>
> </xsl:apply-templates>
> </dataset>
> </root_node>
> </xsl:template>
Change that template to
<xsl:template match="/*">
<xsl:copy>
<xsl:apply-templates>
<xsl:sort select="form/@primary" order="descending"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
