You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by MAHE Vincent FTRD/DIH/REN <vi...@rd.francetelecom.fr> on 2000/08/04 14:46:16 UTC

How to copy child-nodes with xsl:copy-of without copying the pare nt selected node as well ?

Hello,

I want to be able to copy such a tree with XSL :

	<text id="15">
		If you want ot know more click 
		<link>
			here
		</link>
		and you will learn a lot ...
	</text>

I've tried the <xsl:copy-of select="[@id='15']/> instruction 

but my problem is that I don't want to copy the <text id="15"> tag nor the
</text> tag in my HTML output file.

Is there a way to do this ? I just want to copy the text and the child-nodes
between the <text></text> tags ...

Thanks.