This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: XHTML stylesheet and namespace


/ Christophe Roudet <croudet@activia.net> was heard to say:
[...]
| Error: there is no attribute "xmlns" for this element (in this HTML version)

This is a good one. :-)

The problem is that your custom sample-titlepage.xsl file is in HTML not XHTML.
You can fix this problem by processing it with xsl/xhtml/html2xhtml.xsl.

In other words, something like this:

$ mv sample-titlepage.xsl temp.xsl
$ xslt-processor-of-choice temp.xsl .../xsl/xhtml/html2xhtml.xsl sample-titlepage.xsl
$ xslt-processor-of-choice yourdoc.xml yourstylesheet.xsl output.html

Now, where can we document that...

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | There are infinite possibilities
http://www.oasis-open.org/docbook/ | of error, and more cranks take up
Chair, DocBook Technical Committee | unfashionable untruths than
                                   | unfashionable truths.--Bertrand
                                   | Russell


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]