Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Simple copy of a list in XSL >Thread Next - Re: Simple copy of a list in XSL Re: Simple copy of a list in XSLTo: NULL Date: 3/7/2006 12:46:00 AM Hi Yohan,
A simple copy-of should copy your list in the result. Here it is a full
working sample.
XML
<ul>
<li> item 1 </li>
<li> item 2
<ul>
<li> item 2.1 </li>
<li> item 2.1 </li>
</ul>
</li>
<li> item 3 </li>
</ul>
XSL
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="ul">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
www.---.com
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
