Re: Value attribute for the listitem tag in docbook?

Hussein Shafie <[email protected]>
Newsgroups gmane.editors.xxe.general
Message-ID <[email protected]>
On 10/2/21 18:38, Albert wrote:
> Dear Hussein,
> 
> I had contact through the 
> mentioned:https://github.com/docbook/docbook/issues/222 
> <https://github.com/docbook/docbook/issues/222>
> 
> And got as answer back:
> 
>     This already exists.  The @OverRide <https://github.com/OverRide>
>     attribute on a DocBook orderedlist/listitem element will cause the
>     DocBook XSL stylesheet to output a @value <https://github.com/value>
>     attribute on the corresponding HTML <li> element. 
> 
> 
> My test shows that in the XMLMind Docbook viewer the override is not 
> taken into account, but when converting the document to HTML or PDF the 
> override is taken into account.
> My first impression is that this is a small omission in the Docbook 
> viewer of XMLMind.
> Is my impression correct?

Yes, that's right. We didn't know about listitem/@override, therefore 
this attribute is not rendered by our DocBook CSS stylesheets.



--> Similarly, we didn't know about itemizedlist/@mark. Hence not 
rendered by our DocBook CSS stylesheets.
---
mark(NMTOKEN)

     Identifies the type of mark to be used on items in this list
---
https://tdg.docbook.org/tdg/5.1/itemizedlist.html

There are probably several other attributes not rendered by our DocBook 
CSS stylesheets simply because we don't know about them and/or 
understand them and/or find them really useful.



--> We are sorry but we don't plan to implement attribute 
listitem/@override in our DocBook CSS stylesheets. Two reasons for that:

1) You are the very first user to request its support in near 20 years 
of existence of XMLmind XML Editor.

2) This attribute is documented as:
---
override(NMTOKEN)

     Specifies the keyword for the type of mark that should be used on 
this item, instead of the mark that would be used by default
---
See https://tdg.docbook.org/tdg/5.1/listitem.html

which is a poor specification that could be understood as:
---
the label of this listitem is *anything* you want (e.g. "[Foo-22]")
---

That is, not really the equivalent of li/@value:
---
The value attribute, if present, must be a valid integer. It is used to 
determine the ordinal value of the list item, when the li's list owner 
is an ol element.
---
See 
https://html.spec.whatwg.org/multipage/grouping-content.html#attr-li-value






> 
> Best Regards,
> 
> Albert
> 

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.