| Subject: RE: [xsl] xsl:for-each and xsl:apply-templates From: Gerry McDonough <gmcdonough@xxxxxxxx> Date: Thu, 2 Aug 2001 11:13:10 -0500 | 
I need to wrap each child element.  Michael pointed out that the context 
switches to the child nodes in the loop, so I understand that they are not 
being ignored.  Here is a more concrete example:
xml source is:
<list>
  <link .../>
  <link .../>
  <link .../>
</list>
xsl template is:
<xsl:template match="list">
  <ul>
  <xsl:for-each select="link">
    <li>...I would like to invoke the link template here...does 
xsl:call-template work?...</li>
  </xsl:for-each>
  </ul>
</xsl:template>
Thanks to all for the replies, Gerry
----------
From: 	David Carlisle
Sent: 	Wednesday, August 01, 2001 12:55 PM
To: 	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: 	Re: [xsl] xsl:for-each and xsl:apply-templates
  <xsl:when test="name(parent::node()) = 'parent1'">
I think the poster said child processing was the same, but if not better
to do
  <xsl:when test="parent::parent1">
than the above as a) it's quicker (to write and to execute) and b) it
works correctly in the presence of namespaces, which expressions
involving name() tend not to do.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
begin 600 WINMAIL.DAT
M>)\^(@L0`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$(@ <`
M& ```$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`0V ! `"`````@`"``$$
MD 8`6 $```$````,`````P``, (````+``\.``````(!_P\!````70``````
M``"!*Q^DOJ,0&9UN`-T!#U0"`````'AS;"UL:7-T0&QI<W1S+FUU;&)E<G)Y
M=&5C:"YC;VT`4TU44 !X<VPM;&ES=$!L:7-T<RYM=6QB97)R>71E8V@N8V]M
M`````!X``C !````!0```%--5% `````'@`#, $````@````>'-L+6QI<W1 
M;&ES=',N;75L8F5R<GET96-H+F-O;0`#`!4,`0````,`_@\&````'@`!, $`
M```B````)WAS;"UL:7-T0&QI<W1S+FUU;&)E<G)Y=&5C:"YC;VTG`````@$+
M, $````E````4TU44#I84TPM3$E35$!,25-44RY-54Q"15)2651%0T@N0T]-
M``````,``#D`````"P! .@$````"`?8/`0````0````````"GDH!!( !`"\`
M``!213H@6WAS;%T@>'-L.F9O<BUE86-H(&%N9"!X<VPZ87!P;'DM=&5M<&QA
M=&5S`-P0`06 `P`.````T0<(``(`"P`-``H`! `(`0$@@ ,`#@```-$'" `"
M``L`# `Y``0`-@$!"8 !`"$````W-S1$-#<R.#8Q.#=$-3$Q.3!!,# P0C!$
M,#$R-$$W10#@!@$#D 8`C 8``!0````+`",```````,`)@``````"P`I````
M```#`"X```````,`-@``````0 `Y`&"0(09N&\$!'@!P``$````O````4D4Z
M(%MX<VQ=('AS;#IF;W(M96%C:"!A;F0@>'-L.F%P<&QY+71E;7!L871E<P``
M`@%Q``$````6`````<$;;@8A*$=->(=A$=60H "PT!)*?@``'@`># $````%
M````4TU44 `````>`!\,`0```!0```!G;6-D;VYO=6=H0&]D8G,N8V]M``,`
M!A 7QF]P`P`'$%0$```>``@0`0```&4```!)3D5%1%1/5U)!4$5!0TA#2$E,
M1$5,14U%3E1-24-(045,4$])3E1%1$]55%1(05142$5#3TY415A44U=)5$-(
M15-43U1(14-(24Q$3D]$15-)3E1(14Q/3U L4T])54Y$15)3``````(!"1 !
M````ZP0``.<$``!*"0``3%I&=> 04*W_``H!#P(5`J0#Y 7K`H,`4!,#5 (`
M8V@*P'-E=.XR!@`&PP*#,@/&!Q,"@Q(S$P]F- ]Z:&5LT0,@1&QG`H!]"H (
MS\4)V3L7GS(U-0* "H&##;$+8&YG,3 S%" 7"PH4(@P!8P! ($D@`FX)X&0@
M=&\@=R!R87 @90#0:"!O$; #$!S0%C!E!X ","X:( 70:1&Q%C @<&_="X!T
M',$(8 5 =!' '^)F91VP`B%E> 5 `^%TWQ&P!Y$<\2!3'=-N!'$$(,<+@"!#
M%S!O<"PA`!T`Z1R =6X$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X3?0:5#D"<1!X%LT/YG.J%N027 :!$A478Q
M'-!K1')$,FLB<'<#H$_@<NM5H >18B4@4P&0:X$?<?\$H!(`0:4-L"L`=2 7
MH1_QKP-@58 =H"!238;$3 &@W00@5HDR!@`[P&X#`"7QKP9A3^ J(!Z01@6Q
M9@AP_R!1<!8+@#6A,R%\X8D1`) %!4!H`D!P.B\O=R618"XD07(NBG$N=?QK
M+R1!6[%N0!U0B%.*0O^0,74@>?$[PD&EB=M$8PVP_P&0`Q $()!A(%*-/XY$
M*,S (%A33"U,*Q&/P_]BDPK '<%U(%]0D.I;[CX2_SX26R,HS&2/28=&56:=
M%L$"`*&0``,`$! ``````P`1$ ````! ``<P8%X&_FT;P0% ``@P8%X&_FT;
@P0$>`#T``0````4```!213H@``````,`#33]-P``/ @;
`
end
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] xsl:for-each and xsl:appl, David Carlisle | Thread | Re: [xsl] xsl:for-each and xsl:appl, David Carlisle | 
| Re: [xsl] remove blank xmlns, Jeni Tennison | Date | RE: [xsl] xsl:for-each and xsl:appl, Dudley, Mark | 
| Month |