xsl-list
[Top] [All Lists]

Re: Specifying the XHTML XMLNS

2005-09-28 08:38:04
knocte wrote:

 <xsl:template match="node()">
   <xsl:element name="{local-name()}">
     <xsl:copy-of select="@*"/>
     <xsl:apply-templates/>
   </xsl:element>
 </xsl:template>



Just match="*" (elements) so it doesn't get all nodes. And you don't want to match @* (which I had in my example) because you don't want to turn attributes into elements (whoops...). Then you can also have the typical identity template to catch anything else that is not an element.

best,
-Rob


--~------------------------------------------------------------------
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>
--~--