Subject: RE: XPath problem with getting all ancestors
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 23 Oct 2009 14:20:20 +0100
|
> <xsl:template match="article">
> <xsl:variable name="v1">
> <xsl:copy-of select="content/node()"/>
> </xsl:variable>
> <xsl:sequence select="mf:group($v1/node())"/>
> </xsl:template>
As I suspected, you are copying the nodes, and the copies do not have the
same ancestors.
It's not clear to me WHY you are copying them - it seems quite unnecessary.
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
|