|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: xsl-list Digest 20 Jul 2005 05:10:00 -0000 Iss
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>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








