This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Correct way to handle nested tags


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]