Thank you.

I did not remembered to check the syntax definition :-( .
Kolbjørn

Den 06.04.2016 17:19, Christian Lohmaier skreiv:
On Wed, Apr 6, 2016 at 4:39 PM, Kolbjørn Stuestøl
<kolbjo...@stuestoel.no> wrote:
Sometimes the <emph> tag is inserted before and after all other XML tags
like this (from Help):

    <variable id="tabelleinhalte">Open a spreadsheet document, choose
    <emph><switchinline select="sys">[…]
This is invalid according to document syntax definition. switchinline
is not listed as allowed subelement of "emph".

Other times before and after each emphasized word(s) like this:

    <variable id="tabelleinhalte">Open a spreadsheet document, choose
    <switchinline select="sys"><caseinline
    select="MAC"><emph>%PRODUCTNAME -
    Preferences</emph></caseinline><defaultinline><emph>Tools -
    Options</emph></defaultinline></switchinline><emph> - %PRODUCTNAME
    Calc - View</emph></variable>
This is valid.

Does it matter which method I am using?
Yes. Some are valid combinations according to the helpfile
specification, others are invalid.

The specification is here:
https://cgit.freedesktop.org/libreoffice/help/tree/helpers/xmlhelp.dtd

https://cgit.freedesktop.org/libreoffice/help/tree/helpers/xmlhelp.dtd#n91

<!ELEMENT emph (#PCDATA | item | comment | help-id-missing)*>

<emph> can contain one or more of PCDATA (i.e. actual text content),
<item> tags, <comment> tags and <help-id-missing tags>, but no other
elements, specifically switchinline is not listed.

ciao
Christian



--
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to