xsltproc doesn't work when book's namespace specified

View: New views
1 Messages — Rating Filter:   Alert me  

xsltproc doesn't work when book's namespace specified

by ooDavid :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm new to DocBook.
Let's say I have a simple xml docbook file:
<?xml version="1.0" encoding="utf-8"?>
<book version="5.0">
  <info>
    <title>Simple Book</title>
    <titleabbrev>Simple</titleabbrev>
  </info>
  ...
</book>

Everything works fine with this one but if I add the xmlns attribute for the book, like this:
<?xml version="1.0" encoding="utf-8"?>
<book xmlns="http://docbook.org/ns/docbook"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      version="5.0">
  <info>
    <title>Simple Book</title>
    <titleabbrev>Simple</titleabbrev>
  </info>
  ...
</book>

I end up with xsltproc producing such output for any transformation:
Request for title of element with no title: book
No template matches book.
No template matches info in book.
No template matches author in info.
No template matches personname in author.
No template matches title in info.
No template matches titleabbrev in info.
No template matches preface in book.
No template matches title in preface.
No template matches para in preface.
No template matches chapter in book.
No template matches title in chapter.
No template matches para in chapter.
No template matches chapter in book.
No template matches title in chapter.
No template matches para in chapter.

How can I specify the namespace and keep xsltproc recognize the elements?