xsl-list
[Top] [All Lists]

Re: [xsl] mixed content grouping by whitespace

2010-04-13 13:11:39
Hi again,

At 01:09 PM 4/13/2010, David wrote:
<!-- david C-s ideal world The above woul dnot be an error and
group-starting-with would take an expression not a match, and the group would start whenever the expression was true.
so to do nodes you would have to do self::h2 as in the group-by example
(or with exists() for extra clarity rather than relying on implict boolean conversion)


<grouping-nodes-without-reordering>
<xsl:for-each-group select="$x/*" group-starting-with="exists(self::h2)">
<group>
<xsl:copy-of select="current-group()"/>
</group>
</xsl:for-each-group>
</grouping-nodes-without-reordering>

-->

Mm yes, but despite my agreeing with the basic premise, only a mathematician is likely to find this more straightforward than group-starting-with="h2". At least most of the time.

It's when we start thinking about the actual semantics that things get more complicated.

Cheers,
Wendell



======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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