bullet lists

16 views
Skip to first unread message

Jim Mangiafico

unread,
Mar 16, 2020, 2:27:25 PM3/16/20
to akomantoso-xml
Hello all,

I'd be interested in hearing how people are marking up unnumbered block lists, typically decorated with things like bullets or dashes. We're considering two approaches: putting the list-item markers in the <num> element, or specifying them in the class or style attribute of the list or item. For example,

<blockList>
  <item>
    <num>•</num>
    <p>item one</p>
  </item>
  <item>
    <num>•</num>
    <p>item two</p>
  </item>
</blockList>

or

<blockList class="bullet">
  <item>
    <p>item one</p>
  </item>
  <item>
    <p>item two</p>
  </item>
</blockList>

On the one hand, we would like to avoid "generated text"; that is, we prefer that every character on the page appear in the XML. On the other hand, we would like to avoid using the <num> element for things that aren't really numbers.

What are others doing?

Ashok Hariharan

unread,
Mar 16, 2020, 2:48:03 PM3/16/20
to akomant...@googlegroups.com
Hi Jim --

This is what I have done using a custom namespace attribute. Though it is probably not the best approach, since the marker is in an attribute rather than element despite appearing on the page: 

<item customns:prefix="">
    <p>item two</p>
</item>

I did think of using the <num> but it just looked wrong to me. 

Ashok


--
You received this message because you are subscribed to the Google Groups "akomantoso-xml" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akomantoso-xm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/akomantoso-xml/14dc4283-2a37-4cb4-86cb-6cf247a8ae98%40googlegroups.com.

monica.palmirani

unread,
Mar 16, 2020, 5:16:10 PM3/16/20
to akomant...@googlegroups.com
Hi Jim,

I'd prefer this one:
<blockList class="bullet" eId="list_1">
  <item eId="list_1__item_1">
    <p>item one</p>
  </item>
  <item eId="list_1__item_2">
    <p>item two</p>
  </item>
</blockList>

Best,
Monica
To view this discussion on the web visit https://groups.google.com/d/msgid/akomantoso-xml/CAMxPVW4U13zPMsmEiHp%2BdXwOHreBbVR_xsFuA0pXgfFJKz%3DxAQ%40mail.gmail.com.


-- 
===========================================
Full professor of Legal Informatics 
School of Law 
Coordinator of MSCA-ITN EJD LAST-JD-RIoE
Scientific Director of Legal Blockchain Lab
Director of the Summer School LEX
Alma Mater Studiorum Università di Bologna 
C.I.R.S.F.I.D. http://www.cirsfid.unibo.it/ 
Palazzo Dal Monte Gaudenzi - Via Galliera, 3 
I - 40121 BOLOGNA (ITALY) 
Tel +39 051 277217 
Fax +39 051 260782 
E-mail  monica.p...@unibo.it
Reply all
Reply to author
Forward
0 new messages