This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Storing HTML in XML


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]