DocBook XSLT 2.0 Stylesheet output: calloutlist.001.xml

Expected (6 differences)Actual (6 differences)
<html>
   <head>
      <link href="../../resources/css/db-prism.css" rel="stylesheet" type="text/css"/>
      <link href="../../resources/css/default.css" rel="stylesheet" type="text/css"/>
      <link href="../../resources/css/prism.css" rel="stylesheet" type="text/css"/>
      <meta charset="utf-8"/>
      <meta content="DocBook XSL 2.0 Stylesheets Vxxx" name="generator"/>
      <script src="../../resources/js/dbmodnizr.js" type="text/javascript"/>
      <title>Article wrapper</title>
   </head>
   <body>
      <article class="article" id="R.1">
         <header class="article-titlepage">
            <h2>Article wrapper</h2>
         </header>
         <p>Callouts using <code class="tag-element">co</code>:</p>
         <pre class="screen language-none line-numbers">
            <code>
(let <a id="dl1" name="dl1"/>
               <span class="callout-bug callout-bug-unicode" data-number="1">❶</span>loopvar <a id="dl2" name="dl2"/>
               <span class="callout-bug callout-bug-unicode" data-number="2">❷</span>((count 1))
  <a id="dl3" name="dl3"/>
               <span class="callout-bug callout-bug-unicode" data-number="3">❸</span>(if (> count 10)
    <a id="dl4" name="dl4"/>
               <span class="callout-bug callout-bug-unicode" data-number="4">❹</span>#t
    (<a id="dl5" name="dl5"/>
               <span class="callout-bug callout-bug-unicode" data-number="5">❺</span>loopvar <a id="dl6" name="dl6"/>
               <span class="callout-bug callout-bug-unicode" data-number="6">❻</span>(+ count 1))))</code>
         </pre>
         <div class="calloutlist">
            <dl>
               <dt class="callout">
                  <a class="callout-link" href="#dl1">
                     <span class="callout-bug callout-bug-unicode" data-number="1">❶</span>
                  </a> </dt>
               <dd>
                  <p>This variable controls the loop. It is declared without an
initial value, immediately after the <code class="literal">let</code>
operand.</p>
               </dd>
               <dt class="callout">
                  <a class="callout-link" href="#dl2">
                     <span class="callout-bug callout-bug-unicode" data-number="2">❷</span>
                  </a> </dt>
               <dd>
                  <p>Any number of additional local variables can be defined after
the loop variable, just as they can in any other
<code class="literal">let</code> expression.</p>
               </dd>
               <dt class="callout">
                  <a class="callout-link" href="#dl3">
                     <span class="callout-bug callout-bug-unicode" data-number="3">❸</span>
                  </a> </dt>
               <dd>
                  <p>If you ever want the loop to end, you have to put some sort of a
test in it.</p>
               </dd>
               <dt class="callout">
                  <a class="callout-link" href="#dl4">
                     <span class="callout-bug callout-bug-unicode" data-number="4">❹</span>
                  </a> </dt>
               <dd>
                  <p>This is the value that will be returned.</p>
               </dd>
               <dt class="callout">
                  <a class="callout-link" href="#dl5">
                     <span class="callout-bug callout-bug-unicode" data-number="5">❺</span>
                  </a> </dt>
               <dd>
                  <p>Note that you iterate the loop by using the loop variable as if
it was a function name.</p>
               </dd>
               <dt class="callout">
                  <a class="callout-link" href="#dl6">
                     <span class="callout-bug callout-bug-unicode" data-number="6">❻</span>
                  </a> </dt>
               <dd>
                  <p>The arguments to this function are the values that
you want the local variables declared in <a class="callout-link" href="#dl2">
                        <span class="callout-bug callout-bug-unicode" data-number="2">❷</span>
                     </a> to have
in the next iteration.</p>
               </dd>
            </dl>
         </div>
      </article>
      <script src="../../resources/js/prism.js"/>
   </body>
</html>
<html>
   <head>
      <link href="../../resources/css/db-prism.css" rel="stylesheet" type="text/css"/>
      <link href="../../resources/css/default.css" rel="stylesheet" type="text/css"/>
      <link href="../../resources/css/prism.css" rel="stylesheet" type="text/css"/>
      <meta charset="utf-8"/>
      <meta content="DocBook XSL 2.0 Stylesheets Vxxx" name="generator"/>
      <script src="../../resources/js/dbmodnizr.js" type="text/javascript"/>
      <title>Article wrapper</title>
   </head>
   <body>
      <article class="article" id="R.1">
         <header class="article-titlepage">
            <h2>Article wrapper</h2>
         </header>
         <div class="content">
            <p>Callouts using <code class="tag-element">co</code>:</p>
            <pre class="screen language-none line-numbers">
               <code>
(let <a id="dl1" name="dl1"/>
                  <span class="callout-bug callout-bug-unicode" data-number="1">❶</span>loopvar <a id="dl2" name="dl2"/>
                  <span class="callout-bug callout-bug-unicode" data-number="2">❷</span>((count 1))
  <a id="dl3" name="dl3"/>
                  <span class="callout-bug callout-bug-unicode" data-number="3">❸</span>(if (> count 10)
    <a id="dl4" name="dl4"/>
                  <span class="callout-bug callout-bug-unicode" data-number="4">❹</span>#t
    (<a id="dl5" name="dl5"/>
                  <span class="callout-bug callout-bug-unicode" data-number="5">❺</span>loopvar <a id="dl6" name="dl6"/>
                  <span class="callout-bug callout-bug-unicode" data-number="6">❻</span>(+ count 1))))</code>
            </pre>
            <div class="calloutlist">
               <dl>
                  <dt class="callout">
                     <a class="callout-link" href="#dl1">
                        <span class="callout-bug callout-bug-unicode" data-number="1">❶</span>
                     </a> </dt>
                  <dd>
                     <p>This variable controls the loop. It is declared without an
initial value, immediately after the <code class="literal">let</code>
operand.</p>
                  </dd>
                  <dt class="callout">
                     <a class="callout-link" href="#dl2">
                        <span class="callout-bug callout-bug-unicode" data-number="2">❷</span>
                     </a> </dt>
                  <dd>
                     <p>Any number of additional local variables can be defined after
the loop variable, just as they can in any other
<code class="literal">let</code> expression.</p>
                  </dd>
                  <dt class="callout">
                     <a class="callout-link" href="#dl3">
                        <span class="callout-bug callout-bug-unicode" data-number="3">❸</span>
                     </a> </dt>
                  <dd>
                     <p>If you ever want the loop to end, you have to put some sort of a
test in it.</p>
                  </dd>
                  <dt class="callout">
                     <a class="callout-link" href="#dl4">
                        <span class="callout-bug callout-bug-unicode" data-number="4">❹</span>
                     </a> </dt>
                  <dd>
                     <p>This is the value that will be returned.</p>
                  </dd>
                  <dt class="callout">
                     <a class="callout-link" href="#dl5">
                        <span class="callout-bug callout-bug-unicode" data-number="5">❺</span>
                     </a> </dt>
                  <dd>
                     <p>Note that you iterate the loop by using the loop variable as if
it was a function name.</p>
                  </dd>
                  <dt class="callout">
                     <a class="callout-link" href="#dl6">
                        <span class="callout-bug callout-bug-unicode" data-number="6">❻</span>
                     </a> </dt>
                  <dd>
                     <p>The arguments to this function are the values that
you want the local variables declared in <a class="callout-link" href="#dl2">
                           <span class="callout-bug callout-bug-unicode" data-number="2">❷</span>
                        </a> to have
in the next iteration.</p>
                  </dd>
               </dl>
            </div>
         </div>
      </article>
      <script src="../../resources/js/prism.js"/>
   </body>
</html>
The “current” CSS styling is applied to the this entire document; the results in this column may be anomalous. Also, image links are broken in this column. 

Article wrapper

Callouts using co:


(let loopvar ((count 1))
  (if (> count 10)
    #t
    (loopvar (+ count 1))))
 

This variable controls the loop. It is declared without an initial value, immediately after the let operand.

 

Any number of additional local variables can be defined after the loop variable, just as they can in any other let expression.

 

If you ever want the loop to end, you have to put some sort of a test in it.

 

This is the value that will be returned.

 

Note that you iterate the loop by using the loop variable as if it was a function name.

 

The arguments to this function are the values that you want the local variables declared in to have in the next iteration.

Article wrapper

Callouts using co:


(let loopvar ((count 1))
  (if (> count 10)
    #t
    (loopvar (+ count 1))))
 

This variable controls the loop. It is declared without an initial value, immediately after the let operand.

 

Any number of additional local variables can be defined after the loop variable, just as they can in any other let expression.

 

If you ever want the loop to end, you have to put some sort of a test in it.

 

This is the value that will be returned.

 

Note that you iterate the loop by using the loop variable as if it was a function name.

 

The arguments to this function are the values that you want the local variables declared in to have in the next iteration.

XML source