Subject: Re: [xsl] copy and translate an element and its children From: "Matthew L. Avizinis" <mla@xxxxxxxxx> Date: Thu, 03 Jul 2003 15:29:47 -0400 |
Matthew L. Avizinis wrote:Well, that's what I thought at first when I tried it before copy-of, but apparently all the child element attributes are not copied. I needed a deep copy so that's why I used copy-of. Thanks for your suggestions.
Hello, I am currently using <xsl:variable name="short-title"> <xsl:for-each select="title/node()"> <xsl:if test="not(position()=1)"> <xsl:copy-of select="."/> </xsl:if> </xsl:for-each> </xsl:variable> This copies all nodes unchanged.
Isn't it better to use <xsl:variable name="short-title" select="title/node()[position() > 1]"/> Avoids copying.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] copy and translate an ele, David Carlisle | Thread | Re: [xsl] copy and translate an ele, David Carlisle |
RE: [xsl] select in the <xsl:param , Michael Kay | Date | RE: [xsl] Re: generate-id( ) not wo, Lars Huttar |
Month |