Subject: Re: [xsl] Re: xsl-list Digest 20 Jul 2005 05:10:00 -0000 Issue 482 From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx> Date: Thu, 21 Jul 2005 06:27:23 +0530 |
You may do it as - <xsl:template match="/"> <xsl:apply-templates select="//line" /> </xsl:template> <xsl:template match="line"> <!-- Some Processing --> <br/> </xsl:template> (This is not tested) Regards, Mukul On 7/21/05, cookie king <cookieking@xxxxxxxxxxx> wrote: > good day group, > > I am having a problem with some templates. i want to create a template > that can be used at multiple node levels. the sample file below uses the > node "line" at mulltiple leves. I do not want to write 3 templates to > get them to display. i just want a line break or <br /> after each line > node and do it with one template. > > thanks cookie > sample.xml > > <root> > <row> > <name/> > <address> > <line></line> > <line></line> > <line></line> > <url></url> > <email></email> > </address> > <phones> > <phone> > <line></line> > <line></line> > </phone> > <fax> > <line></line> > <line></line> > </fax> > </row> > </root>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: xsl-list Digest 20 Jul 20, cookie king | Thread | [xsl] space between wrapped lines, Anujith Amaratunga |
[xsl] Re: xsl-list Digest 20 Jul 20, cookie king | Date | [xsl] space between wrapped lines, Anujith Amaratunga |
Month |