DocBook XSLT 2.0 Stylesheet output: programlistingco.001.xml

Expected (4 differences)Actual (4 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>
         <pre class="programlisting language-none" data-line="1,4,9,10,11,27">
            <code>@rem = '--*-Perl-*--
@echo off
perl.exe %_batchname %$
goto endofperl
@rem ';

# Compress mail...

require 'n:/home/nwalsh/lib/cygnus.pl';
require 'timelocal.pl';
use Cwd;

select (STDERR); $| = 1;
select (STDOUT); $| = 1;

@DIRS = ("/home/nwalsh/Mail");
while (@DIRS) {
    $dir = shift @DIRS;
    opendir (DIR, $dir);
    while ($fname = readdir(DIR)) {
        $file = "$dir/$fname";
        next if ! -d $file;
        next if $fname =~ /^\.\.?$/;

        print "$file\n";
        push (@DIRS, $file);
        &compress ($file);
    }
}

exit;</code>
         </pre>
         <div class="calloutlist">
            <dl>
               <dt class="callout">
                  <span class="coline">1</span>
               </dt>
               <dd>
                  <p>The prologue handles embedding a Perl script in a DOS batch file.</p>
               </dd>
               <dt class="callout" id="skipeof-desc">
                  <span class="coline">4</span>
               </dt>
               <dd>
                  <p>The <code class="literal">goto</code> statement, interpreted by the DOS
batch file interpreter, skips over the body of the Perl script. (Note
that this callout has an “id” attribute that is referenced by a
“linkends” attribute on the callout bug for line 4 above.)</p>
               </dd>
               <dt class="callout">
                  <span class="coline">9</span>
                  <span class="coline">10</span>
               </dt>
               <dd>
                  <p>The <code class="literal">require</code> statement sources in external program
fragments.</p>
               </dd>
               <dt class="callout">
                  <span class="coline">11</span>
               </dt>
               <dd>
                  <p>The <code class="literal">use</code> statement is similar, but has additional
utility.  It is a Perl5 function.  (Note that this callout area specifies
both a line and a column.)</p>
               </dd>
               <dt class="callout">
                  <span class="coline">27</span>
               </dt>
               <dd>
                  <p>This is a user subroutine call.</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">
            <pre class="programlisting language-none" data-line="1,4,9,10,11,27">
               <code>@rem = '--*-Perl-*--
@echo off
perl.exe %_batchname %$
goto endofperl
@rem ';

# Compress mail...

require 'n:/home/nwalsh/lib/cygnus.pl';
require 'timelocal.pl';
use Cwd;

select (STDERR); $| = 1;
select (STDOUT); $| = 1;

@DIRS = ("/home/nwalsh/Mail");
while (@DIRS) {
    $dir = shift @DIRS;
    opendir (DIR, $dir);
    while ($fname = readdir(DIR)) {
        $file = "$dir/$fname";
        next if ! -d $file;
        next if $fname =~ /^\.\.?$/;

        print "$file\n";
        push (@DIRS, $file);
        &compress ($file);
    }
}

exit;</code>
            </pre>
            <div class="calloutlist">
               <dl>
                  <dt class="callout">
                     <span class="coline">1</span>
                  </dt>
                  <dd>
                     <p>The prologue handles embedding a Perl script in a DOS batch file.</p>
                  </dd>
                  <dt class="callout" id="skipeof-desc">
                     <span class="coline">4</span>
                  </dt>
                  <dd>
                     <p>The <code class="literal">goto</code> statement, interpreted by the DOS
batch file interpreter, skips over the body of the Perl script. (Note
that this callout has an “id” attribute that is referenced by a
“linkends” attribute on the callout bug for line 4 above.)</p>
                  </dd>
                  <dt class="callout">
                     <span class="coline">9</span>
                     <span class="coline">10</span>
                  </dt>
                  <dd>
                     <p>The <code class="literal">require</code> statement sources in external program
fragments.</p>
                  </dd>
                  <dt class="callout">
                     <span class="coline">11</span>
                  </dt>
                  <dd>
                     <p>The <code class="literal">use</code> statement is similar, but has additional
utility.  It is a Perl5 function.  (Note that this callout area specifies
both a line and a column.)</p>
                  </dd>
                  <dt class="callout">
                     <span class="coline">27</span>
                  </dt>
                  <dd>
                     <p>This is a user subroutine call.</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

@rem = '--*-Perl-*--
@echo off
perl.exe %_batchname %$
goto endofperl
@rem ';

# Compress mail...

require 'n:/home/nwalsh/lib/cygnus.pl';
require 'timelocal.pl';
use Cwd;

select (STDERR); $| = 1;
select (STDOUT); $| = 1;

@DIRS = ("/home/nwalsh/Mail");
while (@DIRS) {
    $dir = shift @DIRS;
    opendir (DIR, $dir);
    while ($fname = readdir(DIR)) {
        $file = "$dir/$fname";
        next if ! -d $file;
        next if $fname =~ /^\.\.?$/;

        print "$file\n";
        push (@DIRS, $file);
        &compress ($file);
    }
}

exit;
1

The prologue handles embedding a Perl script in a DOS batch file.

4

The goto statement, interpreted by the DOS batch file interpreter, skips over the body of the Perl script. (Note that this callout has an “id” attribute that is referenced by a “linkends” attribute on the callout bug for line 4 above.)

910

The require statement sources in external program fragments.

11

The use statement is similar, but has additional utility. It is a Perl5 function. (Note that this callout area specifies both a line and a column.)

27

This is a user subroutine call.

Article wrapper

@rem = '--*-Perl-*--
@echo off
perl.exe %_batchname %$
goto endofperl
@rem ';

# Compress mail...

require 'n:/home/nwalsh/lib/cygnus.pl';
require 'timelocal.pl';
use Cwd;

select (STDERR); $| = 1;
select (STDOUT); $| = 1;

@DIRS = ("/home/nwalsh/Mail");
while (@DIRS) {
    $dir = shift @DIRS;
    opendir (DIR, $dir);
    while ($fname = readdir(DIR)) {
        $file = "$dir/$fname";
        next if ! -d $file;
        next if $fname =~ /^\.\.?$/;

        print "$file\n";
        push (@DIRS, $file);
        &compress ($file);
    }
}

exit;
1

The prologue handles embedding a Perl script in a DOS batch file.

4

The goto statement, interpreted by the DOS batch file interpreter, skips over the body of the Perl script. (Note that this callout has an “id” attribute that is referenced by a “linkends” attribute on the callout bug for line 4 above.)

910

The require statement sources in external program fragments.

11

The use statement is similar, but has additional utility. It is a Perl5 function. (Note that this callout area specifies both a line and a column.)

27

This is a user subroutine call.

XML source