On Tue, Mar 6, 2012 at 12:57 PM, Tom Browder <[email protected]> wrote:
> Cliff, I'm tryng to work through the DB build system and trying to see
> how it all works now.
>
> There are several issues for me here:
>
> 1. There needs to be a common xsl customization file for all DB products.
>
> - I don't see an ".xsl.in" that fits
>
Hmm. Would this xsl file get included by the individual sytlesheet xsl
files, or is it an additional parameter on the xsltproc command line?
> 2. All fo products need a common customization file.
>
> - I have added "doc/docbook/resources/brlcad/
> brlcad-fo-stylesheet.xsl.in
>
Apply the following diff to doc/docbook/CMakeLists.txt:
--- CMakeLists.txt (revision 49616)
+++ CMakeLists.txt (working copy)
@@ -19,6 +19,8 @@
# If we're doing PDF output, Apache FOP needs a couple of config files set
up
if(BRLCAD_EXTRADOCS_PDF)
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/resources/brlcad/
brlcad-fo-stylesheet.xsl.in
+ ${CMAKE_CURRENT_BINARY_DIR}/resources/brlcad/brlcad-fo-stylesheet.xsl)
set(srcdir ${CMAKE_CURRENT_SOURCE_DIR})
configure_file(${CMAKE_SOURCE_DIR}/doc/docbook/fop.xconf.in${CMAKE_BINARY_DIR}/doc/docbook/fop.xconf)
endif(BRLCAD_EXTRADOCS_PDF)
@@ -31,7 +33,7 @@
# separate CMake logic in books/en/CMakeLists.txt to handle the
customization.
set(XSL_XHTML_STYLESHEET
"${CMAKE_CURRENT_BINARY_DIR}/resources/brlcad/brlcad-xhtml-stylesheet.xsl")
set(XSL_MAN_STYLESHEET
"${CMAKE_CURRENT_BINARY_DIR}/resources/brlcad/brlcad-man-stylesheet.xsl")
-set(XSL_FO_STYLESHEET
"${CMAKE_CURRENT_BINARY_DIR}/resources/other/standard/xsl/fo/docbook.xsl")
+set(XSL_FO_STYLESHEET
"${CMAKE_CURRENT_BINARY_DIR}/resources/brlcad/brlcad-fo-stylesheet.xsl")
# Include CMake macros for DocBook.
include(${BRLCAD_SOURCE_DIR}/misc/CMake/DocBook.cmake)
Note that the books have their own handling of the fo stylesheets in
books/en/CMakeLists.txt
> 3. Given I have 1 and 2, how do I get them included during the build?
>
The above patch should handle everything for the second case - I need to
understand the mechanics of how you're applying the "common" xsl file in
addition to the individual ones to have a good answer for the first case.
> - I think I have the general case covered (but I haven't checked
> results closely yet).
>
> - The immediate problem I have is trying to fix the books: I need
> the new fo-xsl file included in a particular order as soon as I can
> figure out how to control the order.
>
Why not have the doc/docbook/resources/brlcad/
tutorial-cover-template.xsl.in include the fo-xsl logic file (maybe rename
it to book-fo-template if it's going to cover more than just the cover
formatting)? Is the brlcad-fo-stylesheet. template committed? I could take
a quick look if you can explain the ordering you're after.
BTW, I would rather have my FOP info at the end of the configuration
> rather than during the initial part if there is concern over too much
> info (or maybe have it only during debug builds).
>
I can't really control where it's printing it when it does the tests -
that's up to when the test is run. Do you need to see it at the end
because you want to make sure the FOP binary is the correct one? In my
experience once your FOP setup is correct that result won't change much...
a quick way to double check the FOP results is just grep the Cache file for
FOP:
$ grep FOP CMakeCache.txt
//path to the exec script for Apache FOP
APACHE_FOP:FILEPATH=/usr/bin/fop
//Apache FOP version
APACHE_FOP_VERSION:STRING=1.0
//ADVANCED property for variable: APACHE_FOP
APACHE_FOP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: APACHE_FOP_VERSION
APACHE_FOP_VERSION-ADVANCED:INTERNAL=1
Cliff
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel