Skip to content

Admonition graphics does not render to pdf with custom STYLEROOT  #719

@kalimalrazif

Description

@kalimalrazif

Problem description

I created a custom style sheet inside the xslt/fo directory and enabled graphical admonitions and draft mode, but even though I created the static/images directory inside xslt/fo, neither the draft watermark nor the graphical admonitions are displayed. 😢

Got this output:

❯ daps -vvvv -d DC-QPortal-Producto-HLD pdf --remarks
---------------

        DAPS VERSION: 3.3.2

             DOC_DIR: /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD
           BUILD_DIR: /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build
            DAPSROOT: /usr/local/daps/share/daps
             DOCCONF: /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/DC-QPortal-Producto-HLD
                BOOK: QPortal-Producto-HLD


     DOCBOOK_VERSION: 5
        DOCBOOK5_RNG: /usr/share/xml/docbook/schema/rng/5.0/docbookxi.rng
        DBSTYLE_VERS: 1.79.1

           STYLEROOT: /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/xslt
      STYLEROOT_VERS: Not available
  FALLBACK_STYLEROOT: /usr/share/xml/docbook/stylesheet/docbook-xsl-ns
   FB_STYLEROOT_VERS: 1.79.1
            EPUB_CSS:
            HTML_CSS:

       PDF FORMATTER: fop
[warning] /usr/bin/fop: JVM flavor 'sun' not understood
   FORMATTER VERSION: FOP Version 2.4
   FORMATTER WRAPPER: /usr/local/daps/share/daps/libexec/daps-fop
    FORMATTER CONFIG:

            MAKE_CMD: /usr/bin/remake -f /usr/local/daps/share/daps/make/selector.mk --debug=b -j1 pdf
       XSLTPROCESSOR: /usr/bin/xsltproc
   XML_CATALOG_FILES: /etc/xml/catalog

---------------

Reading makefiles...
Updating goal targets....
 File 'pdf' does not exist.
   File '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/QPortal-Producto-HLD/QPortal-Producto-HLD_remarks_color_draft_es.pdf' does not exist.
     File '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp/QPortal-Producto-HLD_remarks-fop_color_es.fo' does not exist.
       File '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/MAIN-QPortal-Producto-HLD.xml' does not exist.
         File '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks' does not exist.
        Must remake target '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks'.
mkdir -p /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks
        Successfully remade target file '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks'.
      Must remake target '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/MAIN-QPortal-Producto-HLD.xml'.
/usr/local/daps/share/daps/libexec/daps-xslt --output /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/MAIN-QPortal-Producto-HLD.xml   \
  --stringparam "filename=MAIN-QPortal-Producto-HLD.xml" \
  --stylesheet /usr/local/daps/share/daps/daps-xslt/profiling/noprofile5.xsl --file /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/xml/MAIN-QPortal-Producto-HLD.xml /usr/bin/xsltproc
      Successfully remade target file '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/MAIN-QPortal-Producto-HLD.xml'.
       File '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter1.xml' does not exist.
      Must remake target '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter1.xml'.
/usr/local/daps/share/daps/libexec/daps-xslt --output /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter1.xml   \
  --stringparam "filename=chapter1.xml" \
  --stylesheet /usr/local/daps/share/daps/daps-xslt/profiling/noprofile5.xsl --file /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/xml/chapter1.xml /usr/bin/xsltproc
      Successfully remade target file '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter1.xml'.
       File '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter2.xml' does not exist.
      Must remake target '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter2.xml'.
/usr/local/daps/share/daps/libexec/daps-xslt --output /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter2.xml   \
  --stringparam "filename=chapter2.xml" \
  --stylesheet /usr/local/daps/share/daps/daps-xslt/profiling/noprofile5.xsl --file /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/xml/chapter2.xml /usr/bin/xsltproc
      Successfully remade target file '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter2.xml'.
       File '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter3.xml' does not exist.
      Must remake target '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter3.xml'.
/usr/local/daps/share/daps/libexec/daps-xslt --output /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter3.xml   \
  --stringparam "filename=chapter3.xml" \
  --stylesheet /usr/local/daps/share/daps/daps-xslt/profiling/noprofile5.xsl --file /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/xml/chapter3.xml /usr/bin/xsltproc
      Successfully remade target file '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter3.xml'.
       File '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter4.xml' does not exist.
      Must remake target '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter4.xml'.
/usr/local/daps/share/daps/libexec/daps-xslt --output /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter4.xml   \
  --stringparam "filename=chapter4.xml" \
  --stylesheet /usr/local/daps/share/daps/daps-xslt/profiling/noprofile5.xsl --file /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/xml/chapter4.xml /usr/bin/xsltproc
      Successfully remade target file '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/chapter4.xml'.
       File '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/.validate' does not exist.
      Must remake target '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/.validate'.
      Successfully remade target file '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/.validate'.
       File '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp' does not exist.
      Must remake target '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp'.
mkdir -p /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp
      Successfully remade target file '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp'.
    Must remake target '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp/QPortal-Producto-HLD_remarks-fop_color_es.fo'.
/usr/local/daps/share/daps/libexec/daps-xslt --xinclude --param "show.comments=1" --param "generate.permalink=0" --param "ulink.show=1" --stringparam "draft.mode=yes" --stringparam "styleroot=/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/xslt/fo/" --param "format.print=0" --stringparam "img.src.path=/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.images/color/" --param "fop1.extensions=1" --param "xep.extensions=0"   \
      --stringparam "converter.name=DAPS" --stringparam "converter.version=3.3.2" --stringparam "converter.url=https://opensuse.github.io/daps"   \
     --output /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp/QPortal-Producto-HLD_remarks-fop_color_es.fo --stylesheet /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/xslt/fo/docbook.xsl \
    --file /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.profiled/noprofile_remarks/MAIN-QPortal-Producto-HLD.xml /usr/bin/xsltproc  \
    ;
Making portrait pages on USletter paper (8.5inx11in)
    Successfully remade target file '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp/QPortal-Producto-HLD_remarks-fop_color_es.fo'.
     File '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp/static' does not exist.
    Must remake target '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp/static'.
(cd /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp && ln -sf /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/xslt/fo/static)
    Successfully remade target file '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp/static'.
  Must remake target '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/QPortal-Producto-HLD/QPortal-Producto-HLD_remarks_color_draft_es.pdf'.
(cd /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp/ && /usr/local/daps/share/daps/libexec/daps-fop /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/.tmp/QPortal-Producto-HLD_remarks-fop_color_es.fo /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/QPortal-Producto-HLD/QPortal-Producto-HLD_remarks_color_draft_es.pdf  )
[warning] /usr/bin/fop: JVM flavor 'sun' not understood
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:16333)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:17348)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:18361)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:19367)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:20372)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:21379)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:22379)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:23386)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:24395)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:25397)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:26403)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:27411)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:28412)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:29418)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:30426)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:31427)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:32434)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:33443)
[ERROR] FOUserAgent - Image not found. URI: images/draft.png. (See position 2:34445)
[WARN] FOUserAgent - Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
[WARN] FOUserAgent - Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400".
[WARN] FOUserAgent - Hyphenation pattern not found. URI: es.
[INFO] FOUserAgent - Rendered page #1.
[INFO] FOUserAgent - Rendered page #2.
[ERROR] FOUserAgent - Image not found. URI: images/warning.png. (See position 18:472)
[ERROR] FOUserAgent - Image not found. URI: images/warning.png. (No context info available)
[INFO] FOUserAgent - Rendered page #3.
[INFO] FOUserAgent - Rendered page #4.
[INFO] FOUserAgent - Rendered page #5.
[INFO] FOUserAgent - Rendered page #6.
[INFO] FOUserAgent - Rendered page #7.
[INFO] FOUserAgent - Rendered page #8.
  Successfully remade target file '/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/QPortal-Producto-HLD/QPortal-Producto-HLD_remarks_color_draft_es.pdf'.
   File 'list-images-multisrc' does not exist.
  Must remake target 'list-images-multisrc'.
  Successfully remade target file 'list-images-multisrc'.
   File 'list-images-missing' does not exist.
  Must remake target 'list-images-missing'.
  Successfully remade target file 'list-images-missing'.
Must remake target 'pdf'.
pdfinfo /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/QPortal-Producto-HLD/QPortal-Producto-HLD_remarks_color_draft_es.pdf > /dev/null 2>&1 || ( ccecho "error" "PDF /home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/QPortal-Producto-HLD/QPortal-Producto-HLD_remarks_color_draft_es.pdf has a size of 0 bytes"; false )
PDF book built with REMARKS=1, DRAFT=yes and META=0:
/home/nomar/Documents/Trabajos/EmQu/Documentos/Producto/QPortal-Producto-HLD/build/QPortal-Producto-HLD/QPortal-Producto-HLD_remarks_color_draft_es.pdf
Successfully remade target file 'pdf'.

Expected behavior

The expected behavior is the pdf with draft watermark and graphics admonitions

Steps to reproduce problem

Create a xslt/fo/docbookc.xsl enable graphic admonitions
Create xslt/fo/static/images (a symbolic link to /usr/share/xml/docbook/stylesheet/nwalsh/images)
Just in case create xslt/fo/images (a symbolic link to /usr/share/xml/docbook/stylesheet/nwalsh/images)
Edit DC file and add:

STYLEROOT="xslt"
FALLBACK_STYLEROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl-ns"

Run:
daps -vvvv -d DC-QPortal-Producto-HLD pdf --remarks

What am I doing wrong?

Thanks in advance
Nomar

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions