Lines Matching +full:for +full:- +full:each
4 extension-element-prefixes="ex">
6 <!-- FileName: libraryNodeset05 -->
7 <!-- Document: http://www.w3.org/TR/xslt -->
8 <!-- DocVersion: 19991116 -->
9 <!-- Section: 11.4 -->
10 <!-- Creator: Joe Kesselman -->
11 <!-- Purpose: Ensure that applying axes onto nodeset of global RTF gets the right one. -->
13 <xsl:output method="xml" indent="no" encoding="UTF-8"/>
16 <t1-far-north>
17 <t1-north>
18 <t1-near-north>
19 <t1-far-west/>
20 <t1-west/>
21 <t1-near-west/>
22 <center center-attr-1="c1" xmlns:n="http://example.com">Wrong variable, can you dig it?
23 <t1-near-south>
24 <t1-south>
25 <t1-far-south/>
26 </t1-south>
27 </t1-near-south>
29 <t1-near-east/>
30 <t1-east/>
31 <t1-far-east/>
32 </t1-near-north>
33 </t1-north>
34 </t1-far-north>
38 <t2-far-north>
39 <t2-north>
40 <t2-near-north>
41 <t2-far-west/>
42 <t2-west/>
43 <t2-near-west/>
44 <center center-attr-1="c2" xmlns:n="http://example.com">Dig we must!
45 <t2-near-south>
46 <t2-south>
47 <t2-far-south/>
48 </t2-south>
49 </t2-near-south>
51 <t2-near-east/>
52 <t2-east/>
53 <t2-far-east/>
54 </t2-near-north>
55 </t2-north>
56 </t2-far-north>
61 <!-- First, force evaluation of each variable -->
64 <xsl:value-of select="$top1"/>
68 <xsl:value-of select="$top2"/>
74 <xsl:for-each select="ex:nodeset($top2)//center">
75 <xsl:value-of select="name(.)"/>
77 </xsl:for-each>
83 <xsl:for-each select="ex:nodeset($top2)//center/child::*">
84 <xsl:value-of select="name(.)"/>
86 </xsl:for-each>
91 <xsl:for-each select="ex:nodeset($top2)//center/descendant::*">
92 <xsl:value-of select="name(.)"/>
94 </xsl:for-each>
99 <xsl:for-each select="ex:nodeset($top2)//center/parent::*">
100 <xsl:value-of select="name(.)"/>
102 </xsl:for-each>
107 <xsl:for-each select="ex:nodeset($top2)//center/ancestor::*">
108 <xsl:value-of select="name(.)"/>
110 </xsl:for-each>
114 <xsl:text>W05: center/following-sibling::* nodes in $top2 are </xsl:text>
115 <xsl:for-each select="ex:nodeset($top2)//center/following-sibling::*">
116 <xsl:value-of select="name(.)"/>
118 </xsl:for-each>
122 <xsl:text>W06: center/preceding-sibling::* nodes in $top2 are </xsl:text>
123 <xsl:for-each select="ex:nodeset($top2)//center/preceding-sibling::*">
124 <xsl:value-of select="name(.)"/>
126 </xsl:for-each>
131 <xsl:for-each select="ex:nodeset($top2)//center/following::*">
132 <xsl:value-of select="name(.)"/>
134 </xsl:for-each>
139 <xsl:for-each select="ex:nodeset($top2)//center/preceding::*">
140 <xsl:value-of select="name(.)"/>
142 </xsl:for-each>
147 <xsl:for-each select="ex:nodeset($top2)//center/attribute::*">
148 <xsl:value-of select="name(.)"/>
150 </xsl:for-each>
155 <xsl:for-each select="ex:nodeset($top2)//center/namespace::*">
156 <xsl:value-of select="name(.)"/>
158 </xsl:for-each>
163 <xsl:for-each select="ex:nodeset($top2)//center/self::*">
164 <xsl:value-of select="name(.)"/>
166 </xsl:for-each>
170 <xsl:text>W12: center/descendant-or-self::* nodes in $top2 are </xsl:text>
171 <xsl:for-each select="ex:nodeset($top2)//center/descendant-or-self::*">
172 <xsl:value-of select="name(.)"/>
174 </xsl:for-each>
178 <xsl:text>W13: center/ancestor-or-self::* nodes in $top2 are </xsl:text>
179 <xsl:for-each select="ex:nodeset($top2)//center/ancestor-or-self::*">
180 <xsl:value-of select="name(.)"/>
182 </xsl:for-each>
186 <!-- Above was wildcard, now use name tests -->
187 <xsl:text>N01: center/child::t2-near-south nodes in $top2 are </xsl:text>
188 <xsl:for-each select="ex:nodeset($top2)//center/child::t2-near-south">
189 <xsl:value-of select="name(.)"/>
191 </xsl:for-each>
195 <xsl:text>N02: center/descendant::t2-south nodes in $top2 are </xsl:text>
196 <xsl:for-each select="ex:nodeset($top2)//center/descendant::t2-south">
197 <xsl:value-of select="name(.)"/>
199 </xsl:for-each>
203 <xsl:text>N03: center/parent::t2-near-north nodes in $top2 are </xsl:text>
204 <xsl:for-each select="ex:nodeset($top2)//center/parent::t2-near-north">
205 <xsl:value-of select="name(.)"/>
207 </xsl:for-each>
211 <xsl:text>N04: center/ancestor::t2-north nodes in $top2 are </xsl:text>
212 <xsl:for-each select="ex:nodeset($top2)//center/ancestor::t2-north">
213 <xsl:value-of select="name(.)"/>
215 </xsl:for-each>
219 <xsl:text>N05: center/following-sibling::t2-east nodes in $top2 are </xsl:text>
220 <xsl:for-each select="ex:nodeset($top2)//center/following-sibling::t2-east">
221 <xsl:value-of select="name(.)"/>
223 </xsl:for-each>
227 <xsl:text>N06: center/preceding-sibling::t2-west nodes in $top2 are </xsl:text>
228 <xsl:for-each select="ex:nodeset($top2)//center/preceding-sibling::t2-west">
229 <xsl:value-of select="name(.)"/>
231 </xsl:for-each>
235 <xsl:text>N07: center/following::t2-east nodes in $top2 are </xsl:text>
236 <xsl:for-each select="ex:nodeset($top2)//center/following::t2-east">
237 <xsl:value-of select="name(.)"/>
239 </xsl:for-each>
243 <xsl:text>N08: center/preceding::t2-west nodes in $top2 are </xsl:text>
244 <xsl:for-each select="ex:nodeset($top2)//center/preceding::t2-west">
245 <xsl:value-of select="name(.)"/>
247 </xsl:for-each>
251 <xsl:text>N09: center/attribute::center-attr-1 nodes in $top2 are </xsl:text>
252 <xsl:for-each select="ex:nodeset($top2)//center/attribute::center-attr-1">
253 <xsl:value-of select="name(.)"/>
255 </xsl:for-each>
260 <xsl:for-each select="ex:nodeset($top2)//center/self::center">
261 <xsl:value-of select="name(.)"/>
263 </xsl:for-each>
267 <xsl:text>N11: center/descendant-or-self::t2-south nodes in $top2 are </xsl:text>
268 <xsl:for-each select="ex:nodeset($top2)//center/descendant-or-self::t2-south">
269 <xsl:value-of select="name(.)"/>
271 </xsl:for-each>
275 <xsl:text>N12: center/ancestor-or-self::t2-north nodes in $top2 are </xsl:text>
276 <xsl:for-each select="ex:nodeset($top2)//center/ancestor-or-self::t2-north">
277 <xsl:value-of select="name(.)"/>
279 </xsl:for-each>
286 <!--
289 * distributed with this work for additional information
295 * http://www.apache.org/licenses/LICENSE-2.0
300 * See the License for the specific language governing permissions and
302 -->