]> granicus.if.org Git - docbook-dsssl/commitdiff
New tests
authorNorman Walsh <ndw@nwalsh.com>
Wed, 26 May 2004 13:09:05 +0000 (13:09 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 26 May 2004 13:09:05 +0000 (13:09 +0000)
docbook/relaxng/tests/ng-tests/slides-ng.xml [new file with mode: 0644]
docbook/relaxng/tests/ng-tests/website-ng.xml [new file with mode: 0644]

diff --git a/docbook/relaxng/tests/ng-tests/slides-ng.xml b/docbook/relaxng/tests/ng-tests/slides-ng.xml
new file mode 100644 (file)
index 0000000..2c0896d
--- /dev/null
@@ -0,0 +1,256 @@
+<?xml version="1.0" encoding="utf-8"?>
+<slides xmlns="http://docbook.org/docbook-ng" version="bourbon">
+<info><title>The Slides Document Type</title><titleabbrev>Slides</titleabbrev>
+  
+  
+  <author><personname><firstname>Norman</firstname><surname>Walsh</surname></personname></author>
+  <pubdate>2003-12-19</pubdate>
+  <releaseinfo role="version">3.3.0</releaseinfo>
+  <copyright><year>2002</year><year>2003</year>
+             <holder>Norman Walsh</holder></copyright>
+</info>
+
+<foil><title>Introduction</title>
+<para>This is the introductory slide.</para>
+<para>If you use foil groups (previously called sections), you can
+have introductory slides before the first group.</para>
+<para>Note: Bugs in some versions of Mozilla and IE prevent the XHTML
+version of slides from working correctly in those browsers.
+See <phrase href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=702066&amp;group_id=21935&amp;atid=397263">the report</phrase> for more
+details.</para>
+</foil>
+
+<foilgroup><title>Purpose and History</title>
+
+<para>Groups can now have introductory text as well.</para>
+
+<foil><title>What Are Slides?</title>
+<itemizedlist>
+<listitem><para>An XML presentation tool
+</para></listitem>
+<listitem><para>Suitable for HTML or PDF presentations
+</para></listitem>
+<listitem><para>Supported by Open Source software
+</para></listitem>
+</itemizedlist>
+</foil>
+
+<foil><title>Where Do They Come From?</title>
+
+<itemizedlist>
+<listitem><para>Maintained by the <phrase href="http://docbook.sourceforge.net/">DocBook
+Open Repository</phrase> Project at
+<phrase href="http://sourceforge.net/">SourceForge</phrase>
+</para></listitem>
+<listitem><para>Customization layer of
+<phrase href="http://www.oasis-open.org/docbook/xml/simple/">Simplified DocBook</phrase>
+</para></listitem>
+</itemizedlist>
+</foil>
+
+<foil><title>Why?</title>
+
+<itemizedlist>
+<listitem><para>So Norm could give presentations
+</para></listitem>
+<listitem><para>So Norm could publish those presentations on the web
+</para></listitem>
+<listitem><para>So Norm could have <emphasis>accessible</emphasis> presentations
+that didn't rely on the grotesque HTML output of some otherwise bloated, proprietary
+tool
+</para></listitem>
+<listitem><para>So Norm could cut-and-paste from his DocBook articles and papers
+directly into his slides
+</para></listitem>
+<listitem><para>Oh, let's face it: because it was there. Like the proverbial mountain.
+</para></listitem>
+</itemizedlist>
+</foil>
+</foilgroup>
+
+<foilgroup><title>Authoring</title>
+
+<para>How to write a presentation.</para>
+
+<foil><title>Minimal Presentation</title>
+
+<para>The smallest possible presentation looks like this:</para>
+
+<screen>&lt;?xml version='1.0'?&gt;
+&lt;!DOCTYPE slides PUBLIC "-//Norman Walsh//DTD Slides XML V3.0b1//EN"
+                 "http://docbook.sourceforge.net/release/slides/3.0b1/slides.dtd"&gt;
+&lt;slides&gt;
+&lt;slidesinfo&gt;
+&lt;title&gt;Presentation Title&lt;/title&gt;
+&lt;/slidesinfo&gt;
+&lt;foil&gt;&lt;title&gt;Foil Title&lt;/title&gt;
+&lt;para&gt;Foil content&lt;/para&gt;
+&lt;/foil&gt;
+&lt;/slides&gt;</screen>
+
+<para>Every presentation must contain at least one slide.</para>
+</foil>
+
+<foil><title>Presentation Metadata</title>
+
+<para>Presentations usually have more metadata in the <literal>slidesinfo</literal>
+wrapper. Here's a typical example:</para>
+
+<screen>&lt;slidesinfo&gt;
+  &lt;title&gt;Supporting Localized Generated Text&lt;/title&gt;
+  &lt;titleabbrev&gt;Generated Text&lt;/titleabbrev&gt;
+  &lt;author&gt;&lt;firstname&gt;Norman&lt;/firstname&gt;&lt;surname&gt;Walsh&lt;/surname&gt;&lt;/author&gt;
+  &lt;pubdate&gt;Sunday, 08 Apr 2001&lt;/pubdate&gt;
+  &lt;confgroup&gt;
+    &lt;conftitle&gt;XSLTUK-01&lt;/conftitle&gt;
+    &lt;confdates&gt;08 Apr - 09 Apr 2001&lt;/confdates&gt;
+    &lt;conftitle role="address"&gt;Keble College, Oxford, UK&lt;/conftitle&gt;
+    &lt;confnum&gt;1&lt;/confnum&gt;
+  &lt;/confgroup&gt;
+  &lt;releaseinfo role="version"&gt;Version TEST&lt;/releaseinfo&gt;
+  &lt;copyright&gt;&lt;year&gt;2001&lt;/year&gt;
+             &lt;holder&gt;Sun Microsystems, Inc.&lt;/holder&gt;&lt;/copyright&gt;
+&lt;/slidesinfo&gt;</screen>
+</foil>
+
+<foil><title>Presentation Content</title>
+
+<para>It's common for individual slides to consist of a single
+bulleted or numbered list. However, the full range of <quote>block
+level</quote> Simplified DocBook elements are available.</para>
+
+</foil>
+</foilgroup>
+
+<foilgroup><title>Styling</title>
+
+<para>How to transform a presentation.</para>
+
+<foil><title>HTML</title>
+
+<para>There are a lot of HTML options. When you publish your
+presentation on the web, it's probably best to use one of the simpler,
+more accessible styles. For your actual live presentation, you may
+want to choose something fancier.</para>
+
+</foil>
+
+<foil><title>Plain HTML</title>
+
+<itemizedlist>
+<listitem><para><phrase href="../default/"><filename>default.xsl</filename></phrase>
+and
+<phrase href="../plain/"><filename>plain.xsl</filename></phrase>
+produce fairly simple presentations
+</para></listitem>
+<listitem><para><phrase href="../tables/"><filename>tables.xsl</filename></phrase>
+uses a table to show the navigation context (somewhat like the tabular
+<phrase href="http://docbook.sourceforge.net/">Website</phrase> style)
+</para></listitem>
+<listitem><para><phrase href="../vslides/"><filename>vslides.xsl</filename></phrase>
+places navigation on the left side instead of the top and bottom
+</para></listitem>
+<listitem><para><phrase href="../w3c/"><filename>w3c.xsl</filename></phrase>
+produces slides that resemble the format used by the W3C for presentations
+</para></listitem>
+</itemizedlist>
+
+</foil>
+
+<foil><title>Fancy HTML</title>
+
+<itemizedlist>
+<listitem><para><phrase href="../frames1/frames.html"><filename>frames.xsl</filename></phrase>
+uses frames. There are several options that you can apply:
+</para>
+<itemizedlist>
+<listitem><para><phrase href="../frames2/frames.html">overlay</phrase> uses CSS absolute positioning
+to keep the navigation static on the pages (only works on recent browsers)
+</para></listitem>
+<listitem><para><phrase href="../frames3/frames.html">multiframe</phrase> uses additional frames
+to keep the navigation static on the pages
+</para></listitem>
+
+<listitem>
+<para><phrase href="../frames4/frames.html">dynamic.toc</phrase> uses
+JavaScript to make the table of context <quote>active</quote> so that
+you can open and close the foil groups (only works on recent browsers)</para>
+</listitem>
+
+<listitem>
+<para><phrase href="../frames5/frames.html">active.toc</phrase> uses
+JavaScript to keep the table of contents and the current slide in sync
+(only works on recent browsers)</para>
+</listitem>
+
+<listitem><para>These toc styles can be combined with
+<phrase href="../frames6/frames.html">overlay</phrase> or <phrase href="../frames7/frames.html">multiframe</phrase>
+</para></listitem>
+</itemizedlist>
+</listitem>
+</itemizedlist>
+</foil>
+
+<foil><title>PDF</title>
+
+<para>The <filename>fo-plain.xsl</filename> stylesheet produces XSL Formatting
+Objects that can subsequently be turned into PDF.</para>
+
+</foil>
+
+</foilgroup>
+
+<foilgroup><title>Presentation</title>
+
+<para>How to customize and present a set of slides.</para>
+
+<foil><title>Look And Feel</title>
+
+<para>For HTML display, most of the actual
+<quote>look-and-feel</quote> of the presentation is controlled by the CSS
+stylesheet(s) used.</para>
+
+</foil>
+
+<foil><title>Presentation Tips</title>
+
+<itemizedlist>
+<listitem><para>It's usually best if each slide is only one page (avoid scrolling).
+</para></listitem>
+<listitem><para>If you'll be giving your presentation with a projector, make sure you
+know what resolution you'll have available and test your presentation at that resolution.
+</para></listitem>
+<listitem><para>Make your fonts bigger so the folks in the back of the room can read
+your slides.
+</para></listitem>
+<listitem><para>Test the equipment before your presentation begins. Really.
+</para></listitem>
+<listitem><para>Speak more slowly. I always forget that one.
+</para></listitem>
+</itemizedlist>
+</foil>
+
+</foilgroup>
+
+<foilgroup><title>Conclusions</title>
+
+<foil><title>Conclusions</title>
+
+<para>It's customary to have a conclusions slide.</para>
+
+</foil>
+
+<foil><title>References</title>
+
+<para>References are a good idea too.</para>
+
+</foil>
+
+<foil><title>Q&amp;A</title>
+
+<para>Any questions?</para>
+
+</foil>
+</foilgroup>
+
+</slides>
\ No newline at end of file
diff --git a/docbook/relaxng/tests/ng-tests/website-ng.xml b/docbook/relaxng/tests/ng-tests/website-ng.xml
new file mode 100644 (file)
index 0000000..e1a40ea
--- /dev/null
@@ -0,0 +1,34 @@
+<ws:webpage xmlns="http://docbook.org/docbook-ng"
+           xmlns:ws="http://docbook.org/docbook-ng/website"
+           version="bourbon"
+           id="nwalsh.com">
+<ws:config param="rcsdate" value="$Date$"/>
+<ws:config param="footlink" value="about" altval="About..."/>
+<ws:config param="footlink" value="rss" altval="RSS"/>
+<ws:config param="footlink" value="bookmarks" altval="Bookmarks"/>
+<ws:config param="footlink" value="privacy" altval="Privacy"/>
+<ws:head>
+<title>nwalsh.com</title>
+<ws:summary>The nwalsh.com web site.</ws:summary>
+<ws:keywords>Norman Walsh, DSSSL, SGML, XML, DocBook, Perl, Fonts</ws:keywords>
+</ws:head>
+
+<section>
+<title>Hello, and Welcome!</title>
+
+<para>This website is run by
+<olink targetdoc="people/ndw/index.xml">norm</olink>
+to publish the software and resources he maintains. Enjoy your stay.
+</para>
+
+<para>If you're interested in the stuff here, you may also be interested in
+norm's more dynamic, psuedo-bloggish pages on
+<phrase href="http://norman.walsh.name/">norman.walsh.name</phrase>. Or not. Only
+you can decide.</para>
+
+<ws:webtoc/>
+
+<ws:rss feed="/share/websites/nwalsh/rss/1.0/whatsnew.xml"/>
+
+</section>
+</ws:webpage>