Hi Gil,

in the past fourteen days at one point in time I tried to get a book generated 
without having the
"Common_Content" directory. It seemed that I could get it to run partly, but 
then it turned out it
just would not work. In the meantime I had developed a few ideas, assumptions 
and today, while in a
quite long remote conference where I attended by phone only, I was able to try 
out all sorts of
sledgehammer approaches. As it was a longer conference I could really test out 
all different kind of
ideas and also researching various places that play a role in this endeavor for 
which the needle
"Common_Content" was very helpful!

Lo and behold in the end I became able to create a book without a need to copy 
"trunk/oorexx/en-US"
to "%docpath%\%whichdoc%\en-US \Common_Content".

As long as I can remember where I poked around it might be helpful to create a 
brief note about the
changes:

  * to test: copied the "rexxpg" book to a new "testpg" directory, renaming 
"rexxpg.xml" and
    "rexxpg.ent" to "testpg.xml" and "testpg.xml" respectively and adjusting 
the reference to
    "rexxpg.ent" to "testpg.ent" at the top of each xml file in "testpg\en-US",

  * removed the directory "testpg/en-US/Common_Content" which was created by 
the "docprep.cmd
    testpg" command,

  * changed all the URL references <xi:include href="Common_Content/..." to 
<xi:include
    href="*../../oorexx/en-US/*..." in the following files: "Book_Info.xml", 
"Preface.xml" and
    "%whichdoc%.xml",

  * changed the <imagedata fileref="Common_Content/images/oorexx.jpg" to 
<imagedata
    fileref="*../../oorexx/en-US/*images/oorexx.jpg" in "Book_Info.xml",

  * changed all the <imagedata fileref="Common_Content/images/... to <imagedata
    fileref="*../../oorexx/en-US/*images/ in "oorexx\en-US\": "Notices.xml" and 
"diagrams.xml",

  * changed the following three occurrences in "pdf.xsl" of your toolset:

      o around line # 150 to:

        <xsl:param name="admon.graphics.path">
        *<!--* <xsl:if test="$img.src.path != ''"><xsl:value-of
        
select="$img.src.path"/></xsl:if><xsl:text>Common_Content/images/</xsl:text> 
*-->*
            <xsl:if test="$img.src.path != ''"><xsl:value-of 
select="$img.src.path"/></xsl:if><xsl:text>*../../oorexx/en_US*/images/</xsl:text>
        </xsl:param>

      o around line # 190 to:

        *<!--* <xsl:param name="draft.watermark.image"
        select="'Common_Content/images/watermark-draft.png'"/> *-->*
        <xsl:param name="draft.watermark.image" 
select="'*../../oorexx/en_US*/images/watermark-draft.png'"/>

      o aournd line # 250 to:

        <xsl:param name="callout.graphics.path">
        *<!--* <xsl:if test="$img.src.path != ''"><xsl:value-of
        
select="$img.src.path"/></xsl:if><xsl:text>Common_Content/images/</xsl:text> 
*-->*
            <xsl:if test="$img.src.path != ''"><xsl:value-of 
select="$img.src.path"/></xsl:if><xsl:text>*../../oorexx/en_US*/images/</xsl:text>
        </xsl:param>

  * changed the base element in the file "fop.cfg" of your toolset from ".." to 
".":

      <!-- Base URL for resolving relative URLs -->
      <base>*.*</base>

  * copied this "fop.cfg" manually to "%docpath%\%whichdoc%\en-US"

  * changed the script "fo2pdf.cmd" of your toolset:

    *rem *set fopcfg=%docpath%\%whichdoc%\en-US\Common_Content\fop.cfg
    set fopcfg=%docpath%\%whichdoc%*\en-US\fop.cfg*

Running "doc2pdf" then generated the "testpg.pdf" book without errors. It looks 
like the
"rexxpg.pdf" book.

---

Knowing that you are currently busy with other things I thought to document 
this such that you could
look into it yourself and judge whether this approach would be feasible for 
your toolset or not.
Again, my approach was a manual "sledgehammer approach".

Now undoing my changes in order to become able again to create the books with 
your toolset.

Best regards

---rony


_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to