Subject: [xsl] grouping nesting items, including following items From: Don Smith <dtsmithisogen@xxxxxxxxx> Date: Tue, 19 Jun 2007 00:47:59 -0700 (PDT) |
I can't quite figure out how to group nested items and also pick up items on the following axis for a given group. Here's a sample source: <slide title="Introduction" id="x1"> <point id="x2" > <text>First point</text> <subpoints id="x3"> <point id="x3a"> <text>First point, subpoint 1</text> </point> <point id="x3b"> <text>First point, subpoint 2</text> </point> <point id="x3c"> <text>First point, subpoint 3</text> <subpoints id="x3c1"> <point id="x3c1a" newSlide="true" title="Intro (cont.)"> <text>First point, subpoint 3, sub-subpoint 1 on new slide</text> </point> <point id="x3c1b"> <text>First point 4, subpoint 3, sub-subpoint 2 on new slide</text> </point> </subpoints> </point> <point id="x4d"> <text>First point, subpoint 4 on new slide</text> </point> </subpoints> </point> <point id="x5" > <text>Second point, on new slide</text> </point> </slide> Note the attribute "newSlide" on <point id="x3c1a">: I need this element, all its descendants (if any), and everything that follows, to be in a different group than everything that comes before. Ideally, this would mean each group is placed in its own document using <xsl:result-document>. This is just one example, but "newSlide='true'" can occur on any <point> or even any <subpoints>. Thanks, Don ____________________________________________________________________________________ Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Dynamic pipelining in XSL, M. David Peterson | Thread | RE: [xsl] grouping nesting items, i, Michael Kay |
Re: [xsl] Dynamic pipelining in XSL, M. David Peterson | Date | Re: [xsl] Dynamic pipelining in XSL, Florent Georges |
Month |