RE: [xsl] Correct way to handle nested tags

Subject: RE: [xsl] Correct way to handle nested tags
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 13 Jun 2001 11:36:47 +0100
> I have the xml:
> <text>
>   some text <img src="img1.gif"/>
>   more text <img src="img2.gif"/>
>   some more text <img src="img3.gif"/>
>   end of text
> </text>
> 
> How would I generate the html:
> "some text <img src="img1.gif"> more text <img 
> src="img2.gif"> some more
> text <img src="img3.gif"> end of text"
> 

<xsl:template match="text">
  <xsl:copy-of select="node()"/>
</xsl:template> 

Mike Kay
Software AG

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread