Skip to content

Instantly share code, notes, and snippets.

@docbook
Created December 1, 2011 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save docbook/1419047 to your computer and use it in GitHub Desktop.
Save docbook/1419047 to your computer and use it in GitHub Desktop.
Comparison of DocBook 1.0 and 2.0.3 stylesheets
<?xml version="1.0" encoding="UTF-8"?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Article Title</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"/>
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="article" title="Article Title">
<div class="titlepage">
<div>
<div>
<h2 class="title">
<a name="d5e1"/>Article Title</h2>
</div>
</div>
<hr/>
</div>
<div class="toc">
<p>
<b>Table of Contents</b>
</p>
<dl>
<dt>
<span class="section">
<a href="#s1">Section title</a>
</span>
</dt>
</dl>
</div>
<p>Introductory paragraph.</p>
<div class="section" title="Section title">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both">
<a name="s1"/>Section title</h2>
</div>
</div>
</div>
<p>Section content. Some <code class="code">code</code>.
Section content. Section content. Section content.
Section content. Section content. Section content. Section content.
Section content. Section content. Section content. Section content.
</p>
<table id="d5e8">
<caption>Table . HTML Table Caption</caption>
<thead>
<tr>
<th>Head 1</th>
<th>Head 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</tbody>
</table>
<p>Section content. Section content. Section content. Section content.
Section content. Section content. Section content. Section content.
Section content. Section content. Section content. Section content.
</p>
</div>
</div>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Article Title</title>
<meta name="generator" content="DocBook XSL 2.0 Stylesheets V2.0.3"/>
<link rel="stylesheet" type="text/css"
href="http://docbook.github.com/release/2.0.3/base/css/default.css"/>
<script type="text/javascript"
src="http://docbook.github.com/release/2.0.3/base/js/dbmodnizr.js"/>
</head>
<body>
<article id="R.1" class="article">
<header class="article-titlepage">
<h2>Article Title</h2>
</header>
<div class="toc">
<p>
<b>Table of Contents</b>
</p>
<ul class="toc">
<li>
<span>
<a href="#s1">1. Section title</a>
</span>
</li>
</ul>
</div>
<p>Introductory paragraph.</p>
<section id="s1" class="section">
<div class="section-titlepage">
<h3>1. Section title</h3>
</div>
<p>Section content. Some <code class="code">code</code>.
Section content. Section content. Section content.
Section content. Section content. Section content. Section content.
Section content. Section content. Section content. Section content.
</p>
<figure id="s1.3" class="table-wrapper">
<div class="table">
<table>
<thead>
<tr>
<th>Head 1</th>
<th>Head 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</tbody>
</table>
</div>
<div class="caption">HTML Table Caption</div>
</figure>
<p>Section content. Section content. Section content. Section content.
Section content. Section content. Section content. Section content.
Section content. Section content. Section content. Section content.
</p>
</section>
</article>
</body>
</html>
<article xmlns="http://docbook.org/ns/docbook">
<title>Article Title</title>
<para>Introductory paragraph.</para>
<section xml:id="s1">
<title>Section title</title>
<para>Section content. Some <code>code</code>.
Section content. Section content. Section content.
Section content. Section content. Section content. Section content.
Section content. Section content. Section content. Section content.
</para>
<table>
<caption>HTML Table Caption</caption>
<thead>
<tr>
<th>Head 1</th>
<th>Head 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</tbody>
</table>
<para>Section content. Section content. Section content. Section content.
Section content. Section content. Section content. Section content.
Section content. Section content. Section content. Section content.
</para>
</section>
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment