← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: [docbook] xsltproc doesn't work when book's namespace specified

From
Bob Stayton <>
Date
2007-11-19T19:41:28+00:00
ID
075f01c82ae4$22217ff0$6900a8c0@totoro
Thread
Re: [docbook] xsltproc doesn't work when book's namespace specified
[moving this over to the docbook-apps mailing list where such topics are 
discussed]

When using xsltproc and DocBook 5 files, I would strongly recommend 
switching to the namespace-aware set of stylesheets.  Download 
docbook-xsl-ns-1.73.2. You will have far fewer problems.

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "ooDavid" <>
To: <>
Sent: Sunday, November 18, 2007 1:55 PM
Subject: [docbook] xsltproc doesn't work when book's namespace specified


>
> 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?
> -- 
> View this message in context: 
> http://www.nabble.com/xsltproc-doesn%27t-work-when-book%27s-namespace-specified-tf4832056.html#a13824392
> Sent from the docbook General mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
← Prev in month ← Prev in thread
Next in thread → Next in month →