<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - [NEWHELP] Automate icon replacement table for Help build"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=128519">128519</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[NEWHELP] Automate icon replacement table for Help build
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.3.2.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Documentation
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>olivier.hallot@libreoffice.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>olivier.hallot@libreoffice.org
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>97629
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=155435" name="attach_155435" title="python script to generate the icon include file">attachment 155435</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=155435&action=edit" title="python script to generate the icon include file">[details]</a></span>
python script to generate the icon include file

When a Help page call a missing icon in the icon theme set, a replacement icon
must be available.

The list of replacement icons exist in core/icon-theme/<theme>/links.txt. This
list is updated each time an icon is added or deleted.

The list must also be used in the Help pages build phase, where missing icons
must be replaced with the right icon from the list above.

The current approach is to generate a XSL transform and include it in the main
XSL transform online_transform.xsl. The auxiliary XSL is named
helpcontent2/help3xsl/links.txt.xsl

The Python script attached here generates link.xtx.xsl based on the link.txt of
the colibre icon theme. However the script is not inserted in the build system
in CustomTarget_html.mk

The task is to add the script in the build process or, do an equivalent shell
script, to produce links.txt.xsl.

That way, it will prevent to update manually list.txt.xsl and update it in git.

Notes:
1) The list.txt.xsl transform is included in online_transform.xsl
2) the xsl:include href= attribute cannot be computed by xsltproc v.1.0 and
must be statically defined. 
3) usually the intermediate files are placed in workdir/ folder. However, the
workdir path is a LibreOffice build parameter. It cannot be used to define the
xsl:include href=</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Help Content Modernization"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=97629">Bug 97629</a>] [META] Help Content Modernization
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>