[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl]
Re: [xsl]
Subject: Re: [xsl] <xsl:apply-templates/> From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 5 Dec 2006 16:41:00 GMT |
<xsl:template match="/"> That matches the root of the document, not the element that you have confusingly called Root (which is its child) so <xsl:apply-templates/> applies to <Root> which recursively applies the default template to all elements of the docuemnt. <xsl:template match="/"> <Root> <xsl:apply-templates select="Root/Header"/> </Root> </xsl:template> would work, or simply <xsl:template match="/"> <Root> <xsl:copy-of select="Root/Header"/> </Root> </xsl:template> David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] <xsl:apply-templates/>, Houman Khorasani | Thread | RE: [xsl] <xsl:apply-templates/>, Houman Khorasani |
[xsl] <xsl:apply-templates/>, Houman Khorasani | Date | RE: [xsl] <xsl:apply-templates/>, Houman Khorasani |
Month |