Subject: Re: [xsl] output content after <br> From: "valerie liston" <valerie_liston@xxxxxxxxxxxxxx> Date: Wed, 29 May 2002 08:04:44 -0700 |
Thanks everybody, that worked great. valerie_liston@xxxxxxxxxxxxxx 00 353 61 419440 ----- Original Message ----- From: "David Carlisle" <davidc@xxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] output content after <br>, David Carlisle | Thread | Re: [xsl] output content after <br>, valerie liston |
RE: [xsl] Using count() with a para, Dean Saxe | Date | RE: [xsl] Generate PDF from XML, John Dreystadt |
Month |