[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
At 2013-05-12 20:00 -0700, Dimitre Novatchev wrote:
Well spotted, Dmitre.
How about something like the following to make the distinction, using a simple non-name character to attach the depth to the name?
(untested)
. . . . . . . . Ken
Re: [xsl] XTTE1100: A sequence of more than one item is not allowed as the @group-adjacent attribute
Subject: Re: [xsl] XTTE1100: A sequence of more than one item is not allowed as the @group-adjacent attribute From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sun, 12 May 2013 22:08:38 -0500 |
At 2013-05-12 20:00 -0700, Dimitre Novatchev wrote:
select="*" group-adjacent="string-join(descendent::*/local-name(),' ')"
this treats the following two fragments as belonging to the same group, and I believe Ihe doesn't want this:
<B> <C/> <D/> </B>
and
<B> <C> <D> </C> </B>
Well spotted, Dmitre.
How about something like the following to make the distinction, using a simple non-name character to attach the depth to the name?
group-adjacent="string-join(descendent::*/ concat(local-name(),'$',count(ancestor::*)))"
(untested)
. . . . . . . . Ken
-- Contact us for world-wide XML consulting and instructor-led training | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: https://plus.google.com/116832879756988317389/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XTTE1100: A sequence of m, Ihe Onwuka | Thread | Re: [xsl] XTTE1100: A sequence of m, Dimitre Novatchev |
Re: [xsl] XTTE1100: A sequence of m, Ihe Onwuka | Date | Re: [xsl] XTTE1100: A sequence of m, Dimitre Novatchev |
Month |
Keywords