OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Stripping namespace from DocBook 5 document


Hi,
Those messages are expected, given your setup.  In DocBook5, elements are 
in the docbook namespace, as you specified in your document root element. 
The original XSL stylesheets are not written for elements in that 
namespace.  When the stylesheet detects a root element in the docbook 
namespace, it first builds a copy of the document in memory while stripping 
the namespace from the elements.  Then it processes the copy.

If you want to eliminate that message, then process with the docbook-xsl-ns 
(namespace-aware) version of the stylesheets.  That is in a separate 
download on the SourceForge site.  In general, I would recommend that set 
for processing DocBook5 documents.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: <Jochen+oasis-open@Hayek.name>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, July 19, 2007 12:30 PM
Subject: [docbook-apps] Stripping namespace from DocBook 5 document


> When I "compile" my DocBook file from within emacs's nxml mode:
>
>    -*- mode: compilation; default-directory: 
> "~/public_html--Hayek.name/" -*-
>    Compilation started at Thu Jul 19 20:58:29
>
>    make -k html
>    env XML_CATALOG_FILES=/etc/xml/catalog \
>        xsltproc \
>            --output book.html \
>            _xsl/html--docbook.xsl \
>            book.xml
>    Stripping namespace from DocBook 5 document.
>    WARNING: cannot add @xml:base to node set root element.  Relative 
> paths may not work.
>    Processing stripped document.
>
>    Compilation finished at Thu Jul 19 20:58:31
>
> I'm getting a few strange messages:
>
>    Stripping namespace from DocBook 5 document.
>    WARNING: cannot add @xml:base to node set root element.  Relative 
> paths may not work.
>    Processing stripped document.
>
> This is how my document starts:
>
>    <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML 5.0CR4//EN" 
> "http://www.oasis-open.org/docbook/xml/5.0CR4/dtd/docbook.dtd"; >
>
>    <article version="5.0" class="techreport" 
> xmlns="http://docbook.org/ns/docbook"; 
> xmlns:xl="http://www.w3.org/1999/xlink";>
>
> I am sure I did not get those messages, when I used DocBook 4.5,
> only when I migrated to DocBook 5, I introduced "that namespace stuff"
> and I started getting these messages.
>
> Maybe I haven't gotten it entirely right ...
>
>
> How serious shall I take those 3 messages?
> And what impact do they really have?
> Can I get rid of a few of them?
>
> I mean, I only introduced "that namespace stuff", so that nxml mode 
> wouldn't mourn at me
> and so that the document complies to what I found at
>
>    http://www.oasis-open.org/docbook/specs/docbook-5.0b6-spec-wd-01.html
>
> which looks to me (according to http://www.oasis-open.org/docbook/specs/)
> like the latest document on DocBook 5.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]