xsl-list
[Top] [All Lists]

RE: [xsl] for-each-group, group-starting-with - group based on attribute value of first child... possible?

2007-02-12 01:21:19

I've tried something like this (which XSLT doesn't seem to like):

How does it express its displeasure?

I've worked it out for myself:

    <xsl:template  match="table">
            <xsl:for-each-group  select="tr"
                group-starting-with="td/@colspan=5">

The value of group-starting-with must be a pattern. You probably want
td[(_at_)colspan=5]

Next time, do please try to save your readers some time and effort by
quoting the error message. You're not there to set us exam questions.

Michael Kay
http://www.saxonica.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>
--~--

<Prev in Thread] Current Thread [Next in Thread>