Hello Yves,

The figure number is filtered in WebHelp output by the following CSS rule:

   .fig--title-label-number,
   .fig--title-label-punctuation {
      display:none;
   }

If you want it in your output, simply create a custom CSS style-sheet with the following rule:

   .fig--title-label-number {
      display: inline;
   }

Then add your custom style-sheet in the 'args.css' parameter in the transformation dialog or define a new publishing template. You can find more details in our user-guide <https://www.oxygenxml.com/doc/versions/23.1/ug-webhelp-responsive/topics/webhelp-customization-ol-numbering.html>.

Regards,
Julien

On 06/08/2021 15:21, Yves Barbion wrote:
Hi Ionela

Aha! Yes, setting "args.figurelink.style" to NUMBER or NUMTITLE solved the problem. The xrefs to the fig now display "Figure 1", "Figure 2" etc.

The figures themselves, however, are not numbered yet. So when I have multiple figs on one page, they all just have the label "Figure:" and no number in my Oxygen responsive webhelp output. In the HTML5 output however, the figures are numbered.  Any idea how I can number my figures in my webhelp just like in the HTML5?
Sorry, but my knowledge of css and xsl is rather limited.
Thank you very much.

Yves

On Fri, 6 Aug 2021 at 12:11, Oxygen XML Editor Support (Ionela Istodor) <supp...@oxygenxml.com <mailto:supp...@oxygenxml.com>> wrote:

    Hi Yves,

    To get the same result also for the WebHelp Responsive output you
    need to set 'args.figurelink.style' parameter to 'NUMTITLE'.
    This can be set either in the WebHelp Responsive transformation
    scenario (Parameters tab) or in the Publishing Template descriptor
    file (*.opt).

    Regards,
    Ionela

    --
    Ionela Istodor
    oXygen XML Editor and Author Support

    Tel: +1-650-352-1250 ext.3010
    Fax: +40-251-461482
    supp...@oxygenxml.com  <mailto:supp...@oxygenxml.com>
    http://www.oxygenxml.com  <http://www.oxygenxml.com>


    ---------------------------------------------------------------------------
    This message (including any attachments) contains confidential information 
and is intended only for the individual(s) named. If you are not the named 
addressee you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately by e-mail if you have received this e-mail by 
mistake and delete this e-mail from your system. Any quotation contained herein 
has a validity of 30 days, unless otherwise specified. Finally, the recipient 
should check this email and any attachments for the presence of viruses. The 
company accepts no liability for any damage caused by any virus transmitted by 
this email.

    On 8/5/2021 10:46 AM, Yves Barbion wrote:
    Hi group

    I've got this topic:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
    <topic id="test">
    <title>test</title>
    <body>
    <p>See <xref href="#test/fig_nmn_q1s_mqb" format="dita"></xref></p>
    <fig id="fig_nmn_q1s_mqb">
    <title></title>
    </fig>
    </body>
    </topic>

    When I generate HTML5 output (using OxygenXML Editor version
    23.1), all is well: I see "See Figure 1". When I generate the
    default responsive output, however, I see the ID of the fig
    displayed, so "See #test/fig_nmn_q1s_mqb".

    Any idea how this can be fixed?

    Thanks

    Yves

    _______________________________________________
    oXygen-user mailing list
    oXygen-user@oxygenxml.com  <mailto:oXygen-user@oxygenxml.com>
    https://www.oxygenxml.com/mailman/listinfo/oxygen-user  
<https://www.oxygenxml.com/mailman/listinfo/oxygen-user>

    _______________________________________________
    oXygen-user mailing list
    oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com>
    https://www.oxygenxml.com/mailman/listinfo/oxygen-user
    <https://www.oxygenxml.com/mailman/listinfo/oxygen-user>


_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to