Re: [xslt] empty xmlns attribute
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] empty xmlns attribute
- Date: Sun, 9 Feb 2003 16:26:51 -0500
On Sun, Feb 09, 2003 at 08:37:32PM +0100, Simone Piunno wrote:
> On Sun, Feb 09, 2003 at 12:21:18PM -0500, Daniel Veillard wrote:
>
> > > <a href="../">DeepSpace6</a></td></tr></table><p xmlns="" class="icons
> > > ^^^^^^^^
> > > xmlns="" is the problem.
> >
> > How is taht p element generated ? If the stylesheet ask to emit a
> > p without any namespace, while the current default namespace is not
> > empty (which is expected for XHTML), then libxslt behaviour is correct.
>
> Thank you Daniel, your hints have been enough to let me solve the
> problem by adding a correct xmlns to templates in my wrapper code.
> So, was this documented in some w3c document?
Well there is no other way, if there is a default namespace and you
ask XSLT to generate a node without namespace, resetting the default
namespace with xmlns="" is the only way to actually output such a node.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]