Lists Archives - Stilo https://www.stilo.com/docs/%knowledge_base%/lists/ experience XML in a whole new way | exceptional tools for structured content solutions Wed, 28 Apr 2021 23:48:02 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://www.stilo.com/wp-content/uploads/2017/03/favicon-150x150.png Lists Archives - Stilo https://www.stilo.com/docs/%knowledge_base%/lists/ 32 32 p.dl.entry, p.dl.head, p.dl.term, p.dl.definition https://www.stilo.com/docs/migrate/lists/p-dl-entry-p-dl-head-p-dl-term-p-dl-definition/ Mon, 15 Mar 2021 00:00:00 +0000 https://www.stilo.com/?post_type=docs&p=65037 Syntax p.dl.entry p.dl.head p.dl.term(level) level nesting level for the list, any integer p.dl.definition(level) level nesting level for the list, any […]

The post p.dl.entry, p.dl.head, p.dl.term, p.dl.definition appeared first on Stilo.

]]>
Syntax

p.dl.entry

p.dl.head

p.dl.term(level)

level

nesting level for the list, any integer

p.dl.definition(level)

level

nesting level for the list, any integer

Purpose

A definition list is a list of terms and corresponding definitions.

Here is a sample list with a header:

Term – Definition
IO
Input Output
FIFO
First In First Out
LIFO
Last In First Out
SQL
Structured Query Language
TTY
Teletype

Since the terms and definitions are in different paragraphs, you will need to use the annotations p.dl.term() and p.dl.definition() to mark up the paragraphs. You can also use the annotation p.dl.head for the header line.

This is what your rules may look like.

Rules for paragraph-level definition list terms and definitionsRules for paragraph-level definition list header

Your output may look like this.

<dl>
  <dlhead>
    <dthd>Term - Definition</dthd>
  </dlhead>
  <dlentry>
    <dt>IO</dt>
    <dd><p>Input Output</p></dd>
  </dlentry>
  <dlentry>
    <dt>FIFO</dt>
    <dd><p>First In First Out</p></dd>
  </dlentry>
  <dlentry>
    <dt>LIFO</dt>
    <dd><p>Last In First Out</p></dd>
  </dlentry>
  <dlentry>
    <dt>SQL</dt>
    <dd><p>Structured Query Language</p></dd>
  </dlentry>
  <dlentry>
    <dt>TTY</dt>
    <dd><p>Teletype</p></dd>
  </dlentry>
</dl>

Definition lists can also be nested, as in this example below.

Computer peripherals

Electronic equipment connected, usually by cable, to the CPU of a computer. Such devices include:

Keyboard

A set of keys used to input text and numbers into a computer.

Mouse

A hand-controlled pointing device that detects two-dimensional motion

Monitor

A screen on which the computer’s output is displayed

Touchscreen

A touch-sensitive screen that can act as both input and output for a system

CPU

Central Processing Unit

This is what your rules may look like.

Rules for nested definition list

This is what your output may look like.

<dl>
  <dlentry>
    <dt>Computer peripherals</dt>
    <dd><p>Electronic equipment connected, usually
    by cable, to the CPU of a computer. Such devices include:
        </p>
        <dl>
          <dlentry>
            <dt>Keyboard</dt>
            <dd>
               <p>A set of keys used to input text and 
                  numbers into a computer.</p>
            </dd>
          </dlentry>
          <dlentry>
            <dt>Mouse</dt>
            <dd>
              <p>A hand-controlled pointing device that detects 
                 two-dimensional motion</p>
            </dd>
          </dlentry>
          <dlentry>
            <dt>Monitor</dt>
            <dd>
              <p>A screen on which the computer’s output is displayed</p>
            </dd>
          </dlentry>
          <dlentry>
            <dt>Touchscreen</dt>
            <dd>
              <p>A touch-sensitive screen that can act as both input 
                 and output for a system</p>
            </dd>
          </dlentry>
        </dl>
    </dd>
  </dlentry>
  <dlentry>
    <dt>CPU</dt>
    <dd>
      <p>Central Processing Unit</p>
    </dd>
  </dlentry>
</dl>

The post p.dl.entry, p.dl.head, p.dl.term, p.dl.definition appeared first on Stilo.

]]>
s.parameter.term, s.parameter.definition https://www.stilo.com/docs/migrate/lists/s-parameter-term-s-parameter-definition/ Mon, 15 Mar 2021 00:00:00 +0000 https://www.stilo.com/?post_type=docs&p=65039 Syntax s.dl.term s.dl.head.term s.dl.head.definition s.dl.definition Purpose A definition list is a list of terms and corresponding definitions. Here is a […]

The post s.parameter.term, s.parameter.definition appeared first on Stilo.

]]>
Syntax

s.dl.term
s.dl.head.term
s.dl.head.definition
s.dl.definition

Purpose

A definition list is a list of terms and corresponding definitions.

Here is a sample set of definitions.

IO – Input Output
FIFO – First In First Out
LIFO – Last In First Out
SQL – Structured Query Language
TTY – Teletype

In this example, the terms and definitions are in the same paragraph; you can apply the annotations s.dl.term and s.dl.definition to the appropriate spans. You will also need the annotation p.dl.entry on the entire paragraph to make the set of terms and definitions into a single definition list.

This is what your rule may look like.

Rules for span-level definition list terms and definitions

Your output may look like this.

<dl>
  <dlentry>
    <dt>IO</dt>
    <dd>Input Output</dd>
  </dlentry>
  <dlentry>
    <dt>FIFO</dt>
    <dd>First In First Out</dd>
  </dlentry>
  <dlentry>
    <dt>LIFO</dt>
    <dd>Last In First Out</dd>
  </dlentry>
  <dlentry>
    <dt>SQL</dt>
    <dd>Structured Query Language</dd>
  </dlentry>
  <dlentry>
    <dt>TTY</dt>
    <dd>Teletype</dd>
  </dlentry>
</dl>

The post s.parameter.term, s.parameter.definition appeared first on Stilo.

]]>
p.li.bulleted() https://www.stilo.com/docs/migrate/lists/p-li-bulleted/ Mon, 15 Mar 2021 00:00:00 +0000 https://www.stilo.com/?post_type=docs&p=65041 Syntax p.li.bulleted(level) level nesting level for the list, any integer Purpose This annotation is used to create a bulleted list […]

The post p.li.bulleted() appeared first on Stilo.

]]>
Syntax

p.li.bulleted(level)

level

nesting level for the list, any integer

Purpose

This annotation is used to create a bulleted list of items. A bulleted list is a collection of items placed in no specific order. The parentheses must contain a number that corresponds to the nesting level of the list item. Unordered lists can be as deeply nested as you want.

The character at the beginning of the list will sometimes be a bullet, sometimes a dash, and sometimes it is some other character. That is dependent on the style of the author and, sometimes, on the nesting level of the list item.

Here is a bulleted list with two nesting levels.

  • The SoC voltage can be in the range of 1.0 to 3.3V.
  • Trace information is time stamped at a resolution of 10ns.
  • QuickTrace forms one component in the BirdsEye’s real time trace debugging system.
    QuickTrace consists of:

    • Trace Debug Tools (TDT)
    • QuickTrace
    • ICE+
    • RealEyeMon.

This will require two rules, one for each nesting level.

p.li.bulleted() rule level 1 and 2

This is the output you may get from these rules.

<ul>
  <li>The SoC voltage can be in the range of 1.0 to 3.3V.</li>
  <li>Trace information is time stamped at a resolution of 10ns.</li>
  <li>
    QuickTrace forms one component in the BirdsEye’s real time trace debugging system.
    QuickTrace consists of:
    <ul>
      <li>Trace Debug Tools (TDT)</li>
      <li>QuickTrace</li>
      <li>ICE+</li>
      <li>RealEyeMon.</li>
    </ul>
  </li>
</ul>

The post p.li.bulleted() appeared first on Stilo.

]]>
p.li.ordered() https://www.stilo.com/docs/migrate/lists/p-li-ordered/ Mon, 15 Mar 2021 00:00:00 +0000 https://www.stilo.com/?post_type=docs&p=65043 Syntax p.li.ordered(level) level nesting level for the list, any integer Purpose This annotation is used to create an ordered list […]

The post p.li.ordered() appeared first on Stilo.

]]>
Syntax

p.li.ordered(level)

level

nesting level for the list, any integer

Purpose

This annotation is used to create an ordered list of items. An ordered list is a collection of items placed in order of importance, usually from greatest to least important. The parentheses must contain a number that corresponds to the nesting level of the list item. Ordered lists can be as deeply nested as you want.

The number at the beginning of the list will sometimes be followed by a period or other character, but not always. That is dependent on the style of the author.

Here is an ordered list with two levels; this is a list of the inner planets with their moons, in order of distance from the sun.

1. Mercury
2. Venus
3. Earth

a. Moon

4. Mars

a. Phobos
b. Deimos

This will require two rules, one for each nesting level.

p.li.ordered() rule level 1 and 2

This is the output you would get from these rules.

<ol>
  <li>Mercury</li>
  <li>Venus</li>
  <li>
    Earth
    <ol>
      <li>Moon</li>
    </ol>
  </li>
  <li>
    Mars
    <ol>
      <li>Phobos</li>
      <li>Deimos</li>
    </ol>
  </li>
</ol>

The post p.li.ordered() appeared first on Stilo.

]]>