xsl-list
[Top] [All Lists]

Re: [xsl] xsl:for-each-group question

2016-01-27 07:38:50
Markus Ohlenroth markus(_dot_)ohlenroth(_at_)phil(_dot_)uni-augsburg(_dot_)de 
wrote:

What values must the ?select? argument and/or the ?group-starting-with?
arguments have in my example

so that the resulting current-group() nodes are <p/> nodes (i.e. the
parent node) instead of <rStyle/> nodes.

Try

<xsl:template match="Root">
   <xsl:copy>
<xsl:for-each-group select="p" group-starting-with="p[rStyle[@val='Lemma']]">
       <service>
         <xsl:copy-of select="current-group()"/>
       </service>

     </xsl:for-each-group>
   </xsl:copy>
 </xsl:template>
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] xsl:for-each-group question, Markus Ohlenroth markus(_dot_)ohlenroth(_at_)phil(_dot_)uni-augsburg(_dot_)de
    • Re: [xsl] xsl:for-each-group question, Martin Honnen martin(_dot_)honnen(_at_)gmx(_dot_)de <=