TKL documentation format
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 8 Nov 2002 13:38:45 +0000 (13:38 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 8 Nov 2002 13:38:45 +0000 (13:38 +0000)
configure.in
doc/Makefile.am
doc/tkl.xsl.in [new file with mode: 0644]
doc/zoom.xml

index 8daf4b2..a12e155 100644 (file)
@@ -82,4 +82,5 @@ AC_OUTPUT([
        doc/Makefile
        doc/yaz++.xml
        doc/yazprint.dsl doc/yazphp.dsl doc/yazhtml.dsl
        doc/Makefile
        doc/yaz++.xml
        doc/yazprint.dsl doc/yazphp.dsl doc/yazhtml.dsl
+        doc/tkl.xsl
 ],[chmod +x yaz++-config src/yaz++-config])
 ],[chmod +x yaz++-config src/yaz++-config])
index c7c486d..a3651ac 100644 (file)
@@ -1,10 +1,11 @@
-## $Id: Makefile.am,v 1.6 2002-10-24 07:20:24 adam Exp $
+## $Id: Makefile.am,v 1.7 2002-11-08 13:38:45 adam Exp $
 docdir=$(datadir)/doc/@PACKAGE@
 
 SUPPORTFILES = \
  yazhtml.dsl.in \
  yazphp.dsl.in \
  yazprint.dsl.in \
 docdir=$(datadir)/doc/@PACKAGE@
 
 SUPPORTFILES = \
  yazhtml.dsl.in \
  yazphp.dsl.in \
  yazprint.dsl.in \
+ tkl.xsl.in \
  xml.dcl
 XMLFILES = \
  installation.xml \
  xml.dcl
 XMLFILES = \
  installation.xml \
@@ -45,6 +46,9 @@ yaz++.pdf: $(XMLFILES)
        pdfjadetex yaz++.tex
        pdfjadetex yaz++.tex
 
        pdfjadetex yaz++.tex
        pdfjadetex yaz++.tex
 
+index.tkl: $(XMLFILES) tkl.xsl
+       xsltproc tkl.xsl $(TOP)
+
 dist-hook: zoom.html
        cp *.html $(distdir)
 
 dist-hook: zoom.html
        cp *.html $(distdir)
 
diff --git a/doc/tkl.xsl.in b/doc/tkl.xsl.in
new file mode 100644 (file)
index 0000000..350b30e
--- /dev/null
@@ -0,0 +1,47 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+               version="1.0">
+
+  <xsl:include href="/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/xhtml/chunk.xsl"/>
+
+  <xsl:variable name="use.id.as.filename">1</xsl:variable>
+  <xsl:variable name="html.ext">.tkl</xsl:variable>
+  <xsl:variable name="navig.showtitles">0</xsl:variable>
+  <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/> 
+
+<xsl:template name="chunk-element-content">
+  <xsl:param name="prev"/>
+  <xsl:param name="next"/>
+
+  <document>
+    <title>
+       <xsl:apply-templates select="." mode="object.title.markup"/>
+    </title>
+    <nonews>1</nonews>
+    <body>
+      <xsl:call-template name="body.attributes"/>
+      <xsl:call-template name="user.header.navigation"/>
+
+      <xsl:call-template name="header.navigation">
+        <xsl:with-param name="prev" select="$prev"/>
+        <xsl:with-param name="next" select="$next"/>
+      </xsl:call-template>
+
+      <xsl:call-template name="user.header.content"/>
+
+      <xsl:apply-imports/>
+
+      <xsl:call-template name="user.footer.content"/>
+
+      <xsl:call-template name="footer.navigation">
+        <xsl:with-param name="prev" select="$prev"/>
+        <xsl:with-param name="next" select="$next"/>
+      </xsl:call-template>
+
+      <xsl:call-template name="user.footer.navigation"/>
+    </body>
+  </document>
+</xsl:template>
+
+</xsl:stylesheet>
+
+
index af485ee..7ae1c3b 100644 (file)
@@ -1,5 +1,5 @@
 <chapter id="zoom">
 <chapter id="zoom">
- <!-- $Id: zoom.xml,v 1.10 2002-10-23 12:22:19 mike Exp $ -->
+ <!-- $Id: zoom.xml,v 1.11 2002-11-08 13:38:45 adam Exp $ -->
  <title>ZOOM-C++</title>
 
 
  <title>ZOOM-C++</title>
 
 
@@ -24,7 +24,7 @@
   </para>
   <para>
    For example, here is a tiny Z39.50 client that fetches and displays
   </para>
   <para>
    For example, here is a tiny Z39.50 client that fetches and displays
-   the MARC record for Farlow & Brett Surman's
+   the MARC record for Farlow &amp; Brett Surman's
    <citetitle>The Complete Dinosaur</citetitle>
    from the Library of Congress's Z39.50 server:
   </para>
    <citetitle>The Complete Dinosaur</citetitle>
    from the Library of Congress's Z39.50 server:
   </para>