
Hi, Following are varios issues I'm expiriencing with boostbook: 1. No support for chapter, part under library. I need to be able to split by docs usign these elements 2. xmlns:xi="http://www.w3.org/2001/XInclude" When I put above attribute in library element my editor complains about validation failure 3. Local customization layer I don't see how to configure Jamfile to use my own cvustomization later (local html.xsl) for chunked output generation 4. Directory structure Why can't bjam create nessesary directories for me? In chunked output directory structure is deep and keep changing while I am adding ids. It' realy incnvinient to be required to create these dirs manually 5. Clean command Is there a command to clean generated output (but leave directory structure) 6. catalog errors My local path is: "D:\Source Code\boost\libs\test\docbook" And I've got following entries in my user-config.jam using xsltproc ; using boostbook : D:\xml\docbook\xsl\ : D:\xml\docbook\dtd\ ; I see following messages in bjam output: ../../../bin.v2/libs/test/docbook/msvc-8.0/debug/catalog.xml:0: element rewriteURI: Catalog error : rewriteURI entry 'rewritePrefix' broken ?: file:///D:/Source Code/boost/tools/boostbook/dtd/ ../../../bin.v2/libs/test/docbook/msvc-8.0/debug/catalog.xml:0: element rewriteURI: Catalog error : rewriteURI entry 'rewritePrefix' broken ?: file:///D:xmldocbookxsl / ../../../bin.v2/libs/test/docbook/msvc-8.0/debug/catalog.xml:0: element rewriteURI: Catalog error : rewriteURI entry 'rewritePrefix' broken ?: file:///D:xmldocbookdtd / 7. Manual xsltproc invocation When I am trying to invoke the xsltproc manually xsltproc -o html/index.html "html.xsl" UTF.xml and my html.xsl looks like this: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="../../../tools/boostbook/xsl/html.xsl"/> <xsl:param name="boost.root" select="'../../..'"/> </xsl:stylesheet> (path is correct) I am getting following error messages: Element library in namespace '' encountered, but no template matches. Element libraryinfo in namespace '' encountered in library, but no template matches. Element copyright in namespace '' encountered in libraryinfo, but no template matches. Element year in namespace '' encountered in copyright, but no template matches. Element year in namespace '' encountered in copyright, but no template matches. Element year in namespace '' encountered in copyright, but no template matches. Element year in namespace '' encountered in copyright, but no template matches. Element year in namespace '' encountered in copyright, but no template matches. Element year in namespace '' encountered in copyright, but no template matches. Element year in namespace '' encountered in copyright, but no template matches. Element holder in namespace '' encountered in copyright, but no template matches. Element legalnotice in namespace '' encountered in libraryinfo, but no template matches. Element librarypurpose in namespace '' encountered in libraryinfo, but no template matches. Element librarycategory in namespace '' encountered in libraryinfo, but no template matches. Element title in namespace '' encountered in library, but no template matches. No template for "/library" (or any of its leaves) exists in the context named "title" in the "en" localization. and completly garbled output. what am I doing wrong? Gennadiy

Gennadiy Rozental wrote:
4. Directory structure Why can't bjam create nessesary directories for me? In chunked output directory structure is deep and keep changing while I am adding ids. It' realy incnvinient to be required to create these dirs manually
That would be *the* bug in the Windows version of xsltproc+libxml2. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

Gennadiy Rozental wrote:
Hi,
Following are varios issues I'm expiriencing with boostbook:
1. No support for chapter, part under library. I need to be able to split by docs usign these elements
Then maybe use Docbook alone rather than the BoostBook extentions?
2. xmlns:xi="http://www.w3.org/2001/XInclude" When I put above attribute in library element my editor complains about validation failure
3. Local customization layer I don't see how to configure Jamfile to use my own cvustomization later (local html.xsl) for chunked output generation
4. Directory structure Why can't bjam create nessesary directories for me? In chunked output directory structure is deep and keep changing while I am adding ids. It' realy incnvinient to be required to create these dirs manually
Are you building on Win32? If so this a well known bug in the Win32 port of xsltproc. There's a patched version of xsltproc here: http://www.meta-comm.com/engineering/boost/xsltproc-win32.zip
5. Clean command Is there a command to clean generated output (but leave directory structure)
Not that I'm aware of :-(
6. catalog errors
My local path is: "D:\Source Code\boost\libs\test\docbook"
And I've got following entries in my user-config.jam
using xsltproc ;
using boostbook : D:\xml\docbook\xsl\ : D:\xml\docbook\dtd\ ;
I see following messages in bjam output:
../../../bin.v2/libs/test/docbook/msvc-8.0/debug/catalog.xml:0: element rewriteURI: Catalog error : rewriteURI entry 'rewritePrefix' broken ?: file:///D:/Source Code/boost/tools/boostbook/dtd/ ../../../bin.v2/libs/test/docbook/msvc-8.0/debug/catalog.xml:0: element rewriteURI: Catalog error : rewriteURI entry 'rewritePrefix' broken ?: file:///D:xmldocbookxsl / ../../../bin.v2/libs/test/docbook/msvc-8.0/debug/catalog.xml:0: element rewriteURI: Catalog error : rewriteURI entry 'rewritePrefix' broken ?: file:///D:xmldocbookdtd /
Hmmm, try forward slashes in the docbook path names in user-config.jam.
7. Manual xsltproc invocation
When I am trying to invoke the xsltproc manually
xsltproc -o html/index.html "html.xsl" UTF.xml
and my html.xsl looks like this:
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="../../../tools/boostbook/xsl/html.xsl"/>
<xsl:param name="boost.root" select="'../../..'"/> </xsl:stylesheet>
(path is correct)
I am getting following error messages:
Element library in namespace '' encountered, but no template matches. Element libraryinfo in namespace '' encountered in library, but no template matches.
what am I doing wrong?
I think you need to include boostbook.xsl first. Translate BoostBook to Docbook, then translate the Docbook to HTML or whatever. HTH, John.

On 7/16/07, John Maddock <john@johnmaddock.co.uk> wrote:
Gennadiy Rozental wrote:
Hi,
Hi,
Following are varios issues I'm expiriencing with boostbook:
1. No support for chapter, part under library. I need to be able to split by docs usign these elements
Then maybe use Docbook alone rather than the BoostBook extentions?
AFAIKS you can use chapter, part and library in Boostbook. (You can not mix them in Quickbook). I have finished the translation of Boostbook's Boostbook based docs :P, a few days ago, to Quickbook. Douglas was using both chapter and part if I recall correctly.
3. Local customization layer I don't see how to configure Jamfile to use my own cvustomization later (local html.xsl) for chunked output generation
This is in the IBD mental TODO list from the day we have the first long thread with you about the boostbook standard. We have been very busy organizing our efforts to get a solid base for the project. We will keep you informed about or progress. If someone wants to tackle this now it will be great, there are others things too we have to integrate into Boost.Build+Boost.Boostbook. It will be great if you can solve your problems with the boost-docs list, so we can talk this stuff there. Best regards Matias

"Matias Capeletto" <matias.capeletto@gmail.com> wrote in message news:e9b043a10707160437y61010c43te32f00c693926523@mail.gmail.com...
On 7/16/07, John Maddock <john@johnmaddock.co.uk> wrote:
Gennadiy Rozental wrote:
Hi,
Hi,
Following are varios issues I'm expiriencing with boostbook:
1. No support for chapter, part under library. I need to be able to split by docs usign these elements
Then maybe use Docbook alone rather than the BoostBook extentions?
AFAIKS you can use chapter, part and library in Boostbook. (You can not mix them in Quickbook). I have finished the translation of Boostbook's Boostbook based docs :P, a few days ago, to Quickbook. Douglas was using both chapter and part if I recall correctly.
Can you please show me how?
3. Local customization layer I don't see how to configure Jamfile to use my own cvustomization later (local html.xsl) for chunked output generation
This is in the IBD mental TODO list from the day we have the first long thread with you about the boostbook standard. We have been very busy organizing our efforts to get a solid base for the project. We will keep you informed about or progress. If someone wants to tackle this now it will be great, there are others things too we have to integrate into Boost.Build+Boost.Boostbook.
IMO this is major (if not primary) need to allow each library has it's own customization layer (even for parameters only)
It will be great if you can solve your problems with the boost-docs list, so we can talk this stuff there.
Did you see my frame replacement suggestion? Gennadiy

"John Maddock" <john@johnmaddock.co.uk> wrote in message news:00c901c7c784$0e602160$0a520e52@fuji...
Gennadiy Rozental wrote:
Hi,
Following are varios issues I'm expiriencing with boostbook:
1. No support for chapter, part under library. I need to be able to split by docs usign these elements
Then maybe use Docbook alone rather than the BoostBook extentions?
Why? Why so black and white? Anyway. I think it's incorrect design decision to treat library element on chapter level. It should be book level.
2. xmlns:xi="http://www.w3.org/2001/XInclude" When I put above attribute in library element my editor complains about validation failure
3. Local customization layer I don't see how to configure Jamfile to use my own cvustomization later (local html.xsl) for chunked output generation
4. Directory structure Why can't bjam create nessesary directories for me? In chunked output directory structure is deep and keep changing while I am adding ids. It' realy incnvinient to be required to create these dirs manually
Are you building on Win32? If so this a well known bug in the Win32 port of xsltproc. There's a patched version of xsltproc here: http://www.meta-comm.com/engineering/boost/xsltproc-win32.zip
How does it match to the latest version on official site?
5. Clean command Is there a command to clean generated output (but leave directory structure)
Not that I'm aware of :-(
6. catalog errors
My local path is: "D:\Source Code\boost\libs\test\docbook"
And I've got following entries in my user-config.jam
using xsltproc ;
using boostbook : D:\xml\docbook\xsl\ : D:\xml\docbook\dtd\ ;
I see following messages in bjam output:
../../../bin.v2/libs/test/docbook/msvc-8.0/debug/catalog.xml:0: element rewriteURI: Catalog error : rewriteURI entry 'rewritePrefix' broken ?: file:///D:/Source Code/boost/tools/boostbook/dtd/ ../../../bin.v2/libs/test/docbook/msvc-8.0/debug/catalog.xml:0: element rewriteURI: Catalog error : rewriteURI entry 'rewritePrefix' broken ?: file:///D:xmldocbookxsl / ../../../bin.v2/libs/test/docbook/msvc-8.0/debug/catalog.xml:0: element rewriteURI: Catalog error : rewriteURI entry 'rewritePrefix' broken ?: file:///D:xmldocbookdtd /
Hmmm, try forward slashes in the docbook path names in user-config.jam.
No difference (as expected)
7. Manual xsltproc invocation
When I am trying to invoke the xsltproc manually
xsltproc -o html/index.html "html.xsl" UTF.xml
and my html.xsl looks like this:
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="../../../tools/boostbook/xsl/html.xsl"/>
<xsl:param name="boost.root" select="'../../..'"/> </xsl:stylesheet>
(path is correct)
I am getting following error messages:
Element library in namespace '' encountered, but no template matches. Element libraryinfo in namespace '' encountered in library, but no template matches.
what am I doing wrong?
I think you need to include boostbook.xsl first.
why?
Translate BoostBook to Docbook, then translate the Docbook to HTML or whatever.
Why can't I do it in one step? Gennadiy

AMDG Gennadiy Rozental <gennadiy.rozental <at> thomson.com> writes:
6. catalog errors
I see following messages in bjam output:
../../../bin.v2/libs/test/docbook/msvc-8.0/debug/catalog.xml:0: element rewriteURI: Catalog error : rewriteURI entry 'rewritePrefix' broken ?: file:///D:/Source Code/boost/tools/boostbook/dtd/ <snip>
It's a bug in Boost.Build http://svn.boost.org/trac/boost/ticket/853 In Christ, Steven Watanabe
participants (5)
-
Gennadiy Rozental
-
John Maddock
-
Matias Capeletto
-
Rene Rivera
-
Steven Watanabe