xsl-list
[Top] [All Lists]

Re: Re: xsl-list Digest 20 Jul 2005 05:10:00 -0000 Issue 482

2005-07-20 17:57:23
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(_at_)comcast(_dot_)net> 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>


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>