xsl-list
[Top] [All Lists]

Re: [xsl] namespace cleanup for XHTML documents

2006-09-13 07:25:32

Firstly make sure you have  xmlns="http://www.w3.org/1999/xhtml"; on your
xsl:stylesheet so it is in scope in the whole stylesheet.

then,
If you are generating the elements, just use the unprefixed form in the
stylesheet, if you are copying then from elsewhere and they are alreay
prefixed then instead of
<xsl:copy>
use
<xsl:element name="{local-name()}">

David


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

<Prev in Thread] Current Thread [Next in Thread>