xsl-list
[Top] [All Lists]

Re: [xsl] flatened hiearchies for xslt2

2007-03-08 08:25:07
Hi David,

You are right, my mistake, I had to make the change because I was
supplying a sequence rather than a node containing a sequence.

Like Dimitri, I also seem to work in extreme hours sometimes ...

I will watch it better.

Thank you,
Andre




change it

David Carlisle a écrit :
First David, yours works fine, but I had to modify

<xsl:param name="s" select="section"/>
to
<xsl:param name="s" select="following-sibling::*"/>

Hmm looks suspicious, it worked as posted on the example you gave
(wherethe top level element (only) was a section that contained the
other section elements as content). If the node on which you start the
grouping is a sibling of the other nodes 9as implied by your change
then the first template that starts the process would need to ensure
that it only applies templates to that node, not to all its siblings.

David



David

--~------------------------------------------------------------------
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>
--~--




--~------------------------------------------------------------------
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>
--~--