This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Storing HTML in XML
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Storing HTML in XML
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 7 Sep 2001 09:51:55 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> MK> If the <title> is the current node, do <xsl:copy-of
> select="node()"/> to
> MK> copy its children.
>
> He also could have said <xsl:copy-of select="."/>, or equally "If the
> <title> ISNT the current node, do <xsl:copy-of
> select="the_path/title"/> to
> copy its children."
I think the original poster wanted to copy the children of a node without
copying the node itself. To do that, you need to use child::node() somewhere
in your path (or its shorthand, node()).
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list