Updated to use doc/common (id-docbook-common)
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 20 Apr 2006 10:25:17 +0000 (10:25 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 20 Apr 2006 10:25:17 +0000 (10:25 +0000)
configure.ac
doc/Makefile.am
doc/tkl.xsl.in [deleted file]
doc/zebrahtml.dsl.in [deleted file]
doc/zebraphp.dsl.in [deleted file]
doc/zebraprint.dsl.in [deleted file]

index 501a1b1..255f75b 100644 (file)
@@ -1,5 +1,5 @@
 dnl Zebra, Index Data ApS, 1995-2006
-dnl $Id: configure.ac,v 1.2 2006-04-05 02:01:21 adam Exp $
+dnl $Id: configure.ac,v 1.3 2006-04-20 10:25:17 adam Exp $
 dnl
 AC_PREREQ(2.59)
 AC_INIT([idzebra],[1.4.0],[adam@indexdata.dk])
@@ -348,10 +348,11 @@ AC_OUTPUT([
   tab/Makefile
   doc/Makefile
   doc/zebra.xml
-  doc/zebrahtml.dsl
-  doc/zebraprint.dsl
-  doc/zebraphp.dsl
-  doc/tkl.xsl
+  doc/common/Makefile
+  doc/common/html.dsl
+  doc/common/html.xsl
+  doc/common/print.dsl
+  doc/common/tkl.xsl
   test/Makefile test/gils/Makefile test/usmarc/Makefile test/api/Makefile
   test/xslt/Makefile
   test/xpath/Makefile
index 2e40961..1ed8838 100644 (file)
@@ -1,12 +1,7 @@
-## $Id: Makefile.am,v 1.41 2006-02-20 07:13:31 adam Exp $
+## $Id: Makefile.am,v 1.42 2006-04-20 10:25:17 adam Exp $
 docdir=$(datadir)/doc/@PACKAGE@
 
-SUPPORTFILES = \
- zebrahtml.dsl \
- zebraphp.dsl \
- zebraprint.dsl \
- tkl.xsl \
- xml.dcl
+SUBDIRS = common
 
 XMLFILES =  zebra.xml.in \
    administration.xml \
@@ -72,7 +67,6 @@ HTMLFILES =  \
    zebra.html \
    zebraidx.html
 
-
 PNGFILES=zebra.png
 EPSFILES=zebra.eps
 
@@ -80,11 +74,10 @@ MANFILES=zebraidx.1 zebrasrv.8 idzebra-config.1
 
 REFFILES=zebraidx-man.sgml zebrasrv-man.sgml idzebra-config-man.sgml
 
-#doc_DATA = $(HTMLFILES) zebra.pdf $(PNGFILES)
-doc_DATA = $(HTMLFILES) $(PNGFILES)
+doc_DATA = $(HTMLFILES) zebra.pdf $(PNGFILES)
 man_MANS = $(MANFILES)
 
-EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(REFFILES) \
+EXTRA_DIST = $(XMLFILES) $(REFFILES) \
        $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
        zvrank.txt marc_indexing.xml
 
@@ -102,22 +95,19 @@ idzebra-config.1: idzebra-config-man.sgml
        docbook2man $(srcdir)/idzebra-config-man.sgml
 
 $(HTMLFILES): $(XMLFILES)
-       jade -E14 -D $(srcdir) -d zebrahtml.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
-
-zebra.php: $(XMLFILES)
-       jade -E14 -D $(srcdir) -d zebraphp.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
+       jade -E14 -D $(srcdir) -d common/html.dsl -t sgml $(srcdir)/common/xml.dcl zebra.xml
 
 zebra.pdf: $(XMLFILES)
        for i in $(PNGFILES); do \
                if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
        done
-       jade -E14 -D $(srcdir) -d zebraprint.dsl -t tex $(srcdir)/xml.dcl zebra.xml
+       jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl zebra.xml
        pdfjadetex zebra.tex >/dev/null
        pdfjadetex zebra.tex >/dev/null
        pdfjadetex zebra.tex >/dev/null
 
 index.tkl: $(XMLFILES) tkl.xsl
-       xsltproc tkl.xsl zebra.xml
+       xsltproc common/tkl.xsl zebra.xml
 
 gils.txt: gils.sgml
        sgml2txt -f gils.sgml
diff --git a/doc/tkl.xsl.in b/doc/tkl.xsl.in
deleted file mode 100644 (file)
index 9265a0f..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-               version="1.0">
-
-  <xsl:include href="@XSL_DIR@/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"/>
-
-  <xsl:element name="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>
-  </xsl:element>
-</xsl:template>
-
-</xsl:stylesheet>
-
-
diff --git a/doc/zebrahtml.dsl.in b/doc/zebrahtml.dsl.in
deleted file mode 100644 (file)
index 842ff4f..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
-<!ENTITY docbook.dsl SYSTEM "@DSSSL_DIR@/html/docbook.dsl"
-  CDATA DSSSL>
-]>
-<!--
-  $Id: zebrahtml.dsl.in,v 1.1 2002-04-08 13:50:13 adam Exp $
--->
-<style-sheet>
-<style-specification use="docbook">
-<style-specification-body>
-
-(define %use-id-as-filename% #t)
-(define %output-dir% "html")
-(define %html-ext% ".html")
-(define %shade-verbatim% #t)
-
-</style-specification-body>
-</style-specification>
-<external-specification id="docbook" document="docbook.dsl">
-</style-sheet>
-  
-<!--
-Local Variables:
-mode: scheme
-End:
--->
diff --git a/doc/zebraphp.dsl.in b/doc/zebraphp.dsl.in
deleted file mode 100644 (file)
index a6ca884..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
-<!ENTITY docbook.dsl SYSTEM "@DSSSL_DIR@/html/docbook.dsl"
-  CDATA DSSSL>
-]>
-<!--
-  $Id: zebraphp.dsl.in,v 1.1 2002-04-08 19:52:29 adam Exp $
--->
-<style-sheet>
-<style-specification use="docbook">
-<style-specification-body>
-
-(define %use-id-as-filename% #t)
-(define %output-dir% "php")
-(define %html-ext% ".php")
-(define %shade-verbatim% #t)
-
-(define newline "\U-000D")
-
-(define (html-document title-sosofo body-sosofo)
-  (let* (;; Let's look these up once, so that we can avoid calculating
-         ;; them over and over again.
-         (prev         (prev-chunk-element))
-         (next         (next-chunk-element))
-         (prevm        (prev-major-component-chunk-element))
-         (nextm        (next-major-component-chunk-element))
-         (navlist      (list prev next prevm nextm))
-        
-         ;; Let's make it possible to control the output even in the
-         ;; nochunks case. Note: in the nochunks case, (chunk?) will
-         ;; return #t for only the root element.
-         (make-entity? (and (or (not nochunks) rootchunk)
-                            (chunk?)))
-        
-         (make-head?   (or make-entity?
-                           (and nochunks
-                                (node-list=? (current-node)
-                                             (sgml-root-element)))))
-         (doc-sosofo 
-          (if make-head?
-             (make sequence
-               (make formatting-instruction data:
-                     (string-append "<" "?php "
-                                    newline
-                                    "require \"../../id_common.inc\";"
-                                    newline
-                                    "id_header(\""
-                                    )
-                     )
-               title-sosofo
-               (make formatting-instruction data:
-                     (string-append "\");"
-                                    newline
-                                    "?" ">"
-                                    )
-                     )
-               (header-navigation (current-node) navlist)
-               body-sosofo
-               (footer-navigation (current-node) navlist)
-               (make formatting-instruction data:
-                     (string-append "<" "?php id_footer() ?>")
-                     )
-               )
-             body-sosofo
-             )
-         )
-        )
-    (if make-entity?
-       (make entity
-         system-id: (html-entity-file (html-file))
-         (if %html-pubid%
-             (make document-type
-               name: "HTML"
-               public-id: %html-pubid%)
-             (empty-sosofo))
-         doc-sosofo)
-       (if (node-list=? (current-node) (sgml-root-element))
-           (make sequence
-             (if %html-pubid%
-                 (make document-type
-                   name: "HTML"
-                   public-id: %html-pubid%)
-                 (empty-sosofo))
-             doc-sosofo)
-           doc-sosofo)
-       )
-    )
-  )
-
-</style-specification-body>
-</style-specification>
-<external-specification id="docbook" document="docbook.dsl">
-</style-sheet>
-
-<!--
-Local Variables:
-mode: scheme
-End:
--->
diff --git a/doc/zebraprint.dsl.in b/doc/zebraprint.dsl.in
deleted file mode 100644 (file)
index fce3256..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
-<!ENTITY docbook.dsl SYSTEM "@DSSSL_DIR@/print/docbook.dsl"
-  CDATA DSSSL>
-]>
-<!--
-  $Id: zebraprint.dsl.in,v 1.1 2002-04-08 13:50:13 adam Exp $
--->
-<style-sheet>
-<style-specification use="docbook">
-<style-specification-body>
-
-</style-specification-body>
-</style-specification>
-<external-specification id="docbook" document="docbook.dsl">
-</style-sheet>
-
-<!--
-Local Variables:
-mode: scheme
-End:
--->