Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for value attribute with the <listitem> tag #84

Open
albert-github opened this issue Oct 2, 2021 · 6 comments
Open

Request for value attribute with the <listitem> tag #84

albert-github opened this issue Oct 2, 2021 · 6 comments

Comments

@albert-github
Copy link

When looking at the tag <orderedlist> we have a.o. the attributes: numeration and startingnumber and these correspond with the attributes type and start of the HTML tag <ol>.
An item in HTML is given by means of the <li> tag and here we have the attribute value, the docbook equivalent of the HTML tag <li> tag is the <listitem> tag but here there is no value or similar tag present.

Request: would it be possible to add an attribute similar to the value attribute of the HTML <li> tag to the docbook <itemlist> tag?

Note: I'm not sure whether or not this is the right place for this request, in case this is not the case please point me to the right place.

@albert-github albert-github changed the title Regquest for value attribute with the <listitem> tag Request for value attribute with the <listitem> tag Oct 2, 2021
@bobstayton
Copy link

bobstayton commented Oct 2, 2021 via email

@albert-github
Copy link
Author

When I have this in XMLMind this override does not show up in the XML editor part, though when converting the result to HTML or PDF I do see the right value. I think this might be a small omission in the XMLMind Docbook viewer.
Previously support from XMLMind told me that there was nor something like it...

Thanks for your help.

@albert-github
Copy link
Author

albert-github commented Oct 3, 2021

After consultation with support of XMLMind some things were pointed out to me about the override specification

override (NMTOKEN)

override

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

  1. The override requires a NMTOKEN and can be anything, whilst the value attribute requires an integer
  2. The override attribute is "for this item", this I interpret as just for 1 item, whilst with the value attribute it says: "The following list items will increment from that number"
  3. The override speaks about "the type of mark", it is a bit unclear what this means

From these points I don't think the translation of the override attribute to a (HTML) li tag value attribute is correct.

@ndw
Copy link
Contributor

ndw commented Oct 3, 2021

You can put numbers in override, and you can use a custom schema to or Schematron rules to assert that only (non-negative) integer values are provided. Having numeration continue from that number would be a stylesheet issue, I think.

The reference to type of mark is a consequence of the fact that listitem is used in both ordered and itemized lists. And variable lists, come to that. I'll see if I can clarify that part in the next version of The Definitive Guide.

@albert-github
Copy link
Author

I think indeed that some clarification would be in place.

Currently the definition of override states: ...for this item... (I made the word this bold), I think that this is in contradiction with your statement "Having numeration continue from that number would be a stylesheet issue, I think.

@ndw
Copy link
Contributor

ndw commented Nov 11, 2021

I'm moving this issue to the Definitive Guide repo because (I think) we've agreed it's a documentation issue.

@ndw ndw transferred this issue from docbook/docbook Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants