This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: output content after <br>


Thanks everybody, that worked great.
valerie_liston@omnibility.com
00 353 61 419440

----- Original Message -----
From: "David Carlisle" <davidc@nag.co.uk>
To: <xsl-list@lists.mulberrytech.com>
Sent: Tuesday, May 28, 2002 7:36 AM
Subject: Re: [xsl] output content after <br>


>
>     Thanks for your help. I tried
>     <xsl:template match="content">
>          <xsl:value-of select="node()"/>
>          <xsl:apply-templates/>
>     </xsl:template>
>
>     But it just seemed to add the first part of the content element twice;
>
>
> that's because you asked for it twice.
> Once with the value-of and once with the apply-templates.
>
> You just want
>
> <xsl:template match="content">
>      <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template match="break">
> <br/>
> </xsl:template>
>
> but the first template is equivalent to the default behaviour so you do
> not need it at all and so the only thing you need is
>
>
> <xsl:template match="break">
> <br/>
> </xsl:template>
>
>
> 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 666 InterScan_Disclaimer.txt
M3VUN:6)I;&ET>2!A=71O;6%T:6-A;&QY('-C86YS(&%L;"!I;F)O=6YD(&%N
M9"!O=71B;W5N9"!E+6UA:6P@871T86-H;65N=',N($AO=V5V97(L('=E(&UA
M>2!N;W0@8F4@86)L92!T;R!D971E8W0@;W(@<F5P86ER(&%L;"!V:7)U<V5S
M(&%N9"!V87)I86YT<RX@4&QE87-E(&)E(&%W87)E('1H870@=&AE<F4@:7,@
M82!R:7-K(&EN=F]L=F5D('=H96YE=F5R(&1O=VYL;V%D:6YG(&4M;6%I;"!A
M='1A8VAM96YT<R!T;R!Y;W5R(&-O;7!U=&5R(&]R('-E;F1I;F<@92UM86EL
9(&%T=&%C:&UE;G1S('1O(&]T:&5R<RX-"@  
end


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]