[Home] [By Thread] [By Date] [Recent Entries]
At 2013-05-13 02:49 +0100, Ihe Onwuka wrote:
I understand but what I described is what I want to do - no it is not an academic exercise. Okay ... from what I can tell your original statement: I am trying to group the children of each
element by the local name of all of the
descendant elements of each child.... might be better expressed as: I am trying to group adjacent children
where the sets of local names of descendent
elements in document order of each child
are identical.... in which case the expression (untested) might be the following where I've taken the set of local names and created a singleton string value for grouping by joining them together: select="*" group-adjacent="string-join(descendent::*/local-name(),' ')" I hope this helps. . . . . . . . . . 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 |
|

Cart



