You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Pa...@lotus.com on 2000/08/04 15:17:48 UTC

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

Mahe asks:

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

I just want to copy the text and the child-nodes
between the <text></text> tags ...

Yes.  This should do it.

<xsl:template match="/text">
    <xsl:copy-of select="*|text()"/>
</xsl:template>

Paul