| Subject: RE: [xsl] Newbie final Tag question From: "Robert Koberg" <rob@xxxxxxxxxx> Date: Tue, 24 Sep 2002 15:25:17 -0700 | 
Hi,
You could do:
<xsl:template match="/">
<prod>
  <xsl:apply-templates/>
</prod> 
</xsl:template>
<xsl:template match="prod">
  <xsl:apply-templates/>
</xsl:template>
<xsl:template match="op">
  <op>
    <xsl:apply-templates/>
  </op>
</xsl:template>
best,
-Rob
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Holmberg
> Rick-ra0119
> Sent: Tuesday, September 24, 2002 3:07 PM
> To: Xsl-List (E-mail)
> Subject: [xsl] Newbie final Tag question
> 
> 
> Hoping someone can help with this one...
> 
> I have a file like
> <prod>
>     <op>abc123</op>
> </prod>
> <prod>
>     <op>xyz987</op>
> </prod>
> 
> I want to parse through this and output
> <prod>
>      <op>abc123</op>
>      <op>xyz987</op>
> </prod>
> 
> No matter which way I try, I keep getting a closing </prod> tag where 
> I dont' want one or it processes teh second <prod> twice.
> Any help is appreciated.
> Thanks!
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| [xsl] Newbie final Tag question, Holmberg Rick-ra0119 | Thread | RE: [xsl] Newbie final Tag question, Macaulay,Malcolm (US | 
| RE: [xsl] Newbie final Tag question, Macaulay,Malcolm (US | Date | RE: [xsl] Newbie final Tag question, Andrew Welch | 
| Month |