[Libreoffice-bugs] [Bug 130599] Help content XSLT: add ability to override headings when embedding sections

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Feb 13 08:47:04 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=130599

--- Comment #3 from Buovjaga <ilmari.lauhakangas at libreoffice.org> ---
Your solution with embedvar is something I wanted to specifically avoid, ie.
creating lots more markup both in the source content and referring content.

No need to worry about paragraph role="heading", I would convert those in the
source to h* elements.

Concrete example:

Creating help for submenu "Text", getting menu help for single and double
underline:

<embed href="text/shared/01/05110300.xhp#untersingle" overrideheading="h2"/>
<embed href="text/shared/01/05110300.xhp#unterdouble" overrideheading="h2"/>

Source markup:

<section id="untersingle">
<h2 id="hd_id949353401761432" xml-lang="en-US"><link
href="text/shared/01/05110300.xhp" name="SingleUnderline">Single
Underline</link></h2>
<bookmark branch="hid/.uno:Underline" xml-lang="en-US" id="bm_id3144750"
localize="false"/>
<paragraph role="paragraph" id="par_id212197604765254" xml-lang="en-US"><ahelp
hid=".uno:Underline">Underlines the selected text with a single
line.</ahelp></paragraph>
</section>
<section id="unterdouble">
<h2 id="hd_id949353401761432" xml-lang="en-US"><link
href="text/shared/01/05110300.xhp" name="DoubleUnderline">Double
Underline</link></h2>
<bookmark branch="hid/.uno:UnderlineDouble" xml-lang="en-US" id="bm_id3147143"
localize="false"/>
<paragraph role="paragraph" id="par_id3154894" xml-lang="en-US"><ahelp
hid=".uno:UnderlineDouble">Underlines the selected text with two
lines.</ahelp></paragraph>
</section>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200213/325547c0/attachment.htm>


More information about the Libreoffice-bugs mailing list