Forrest
  1. Forrest
  2. FOR-363

<figure>-elements within aggregated pdf-pages are not displayed

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.6
    • Fix Version/s: None
    • Component/s: Plugin: output.pdf
    • Labels:
      None
    • Environment:
      Linux

      Description

      With Forrest 0.6 I encountered a problem during the creation of a pdf-file that is aggregated from a group of documents:
      All my graphics are in project-dir]/src/documentation/resources/images (and its subdiretories). Now if I use <figure>-elements in these documents the graphics are not displayed in the aggregated pdf-file. If I use <img>-elements everything's ok.
      As far as I can see this problem is located in
      src/core/context/resources/stylesheets/aggregates/doc2doc-uniqueids.xsl:
      Around line 45 the follwoing template is defined:

      <xsl:template match="section/document//figure|img[starts-with(@src,
      'my-images')]">
          <!-- fix my-images/** links, which break as they are not relative to the
      site root -->
      ...
      </xsl:template>

      If you change the match condition to

      match="section/document//figure[starts-with(@src, 'my-images')]|
      img[starts-with(@src, 'my-images')]">

      even the <figure>-elements are displayed.
      1. for-363.patch
        0.8 kB
        Juan Jose Pablos

        Issue Links

          Activity

          Stephan E. Schlierf created issue -
          Juan Jose Pablos made changes -
          Field Original Value New Value
          Link This issue duplicates FOR-147 [ FOR-147 ]
          Juan Jose Pablos made changes -
          Component/s Plugin: pdf-output [ 12310042 ]
          Description With Forrest 0.6 I encountered a problem during the creation of a pdf-file that is aggregated from a group of documents:
          All my graphics are in project-dir]/src/documentation/resources/images (and its subdiretories). Now if I use <figure>-elements in these documents the graphics are not displayed in the aggregated pdf-file. If I use <img>-elements everything's ok.
          As far as I can see this problem is located in
          src/core/context/resources/stylesheets/aggregates/doc2doc-uniqueids.xsl:
          Around line 45 the follwoing template is defined:

          <xsl:template match="section/document//figure|img[starts-with(@src,
          'my-images')]">
              <!-- fix my-images/** links, which break as they are not relative to the
          site root -->
          ...
          </xsl:template>

          If you change the match condition to

          match="section/document//figure[starts-with(@src, 'my-images')]|
          img[starts-with(@src, 'my-images')]">

          even the <figure>-elements are displayed.
          With Forrest 0.6 I encountered a problem during the creation of a pdf-file that is aggregated from a group of documents:
          All my graphics are in project-dir]/src/documentation/resources/images (and its subdiretories). Now if I use <figure>-elements in these documents the graphics are not displayed in the aggregated pdf-file. If I use <img>-elements everything's ok.
          As far as I can see this problem is located in
          src/core/context/resources/stylesheets/aggregates/doc2doc-uniqueids.xsl:
          Around line 45 the follwoing template is defined:

          <xsl:template match="section/document//figure|img[starts-with(@src,
          'my-images')]">
              <!-- fix my-images/** links, which break as they are not relative to the
          site root -->
          ...
          </xsl:template>

          If you change the match condition to

          match="section/document//figure[starts-with(@src, 'my-images')]|
          img[starts-with(@src, 'my-images')]">

          even the <figure>-elements are displayed.
          Juan Jose Pablos made changes -
          Attachment for-363.patch [ 12310790 ]
          Juan Jose Pablos made changes -
          Attachment for-363.patch [ 12310796 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Stephan E. Schlierf
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development