xsl-list
[Top] [All Lists]

RE: [xsl] XPath problem with getting all ancestors

2009-10-23 09:20:59
      <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 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--