Re: [xslt] empty xmlns attribute



On Sun, Feb 09, 2003 at 05:36:41PM +0100, Simone Piunno wrote:
> xhtml output is not valid (according to xmllint):
> 
> foo.html:300: validity error: No declaration for attribute xmlns of element p
>    <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.

> where db2xhtml.xsl is a custom stilesheet importing the modular one
> and overriding some simple template.
> 
> I can provide the relevant files and how to reproduce it.

  I won't go into debugging the DocBook XHTML stylehseets or your
wrapper XSLT code. Answer the question above first.

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]