diff --git a/manual/architecture/Doctrine.dia b/manual/architecture/Doctrine.dia
deleted file mode 100644
index e713fc160..000000000
Binary files a/manual/architecture/Doctrine.dia and /dev/null differ
diff --git a/manual/architecture/Doctrine_Import.png b/manual/architecture/Doctrine_Import.png
deleted file mode 100644
index 23557fb99..000000000
Binary files a/manual/architecture/Doctrine_Import.png and /dev/null differ
diff --git a/manual/architecture/Doctrine_Import.xmi b/manual/architecture/Doctrine_Import.xmi
deleted file mode 100644
index e118b47ce..000000000
--- a/manual/architecture/Doctrine_Import.xmi
+++ /dev/null
@@ -1,773 +0,0 @@
-
-
- $v) {
- $indexes = explode('.', $v['index']);
- $level = count($indexes);
- $e = explode(' - ', $v['name']);
- $file = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'docs' . DIRECTORY_SEPARATOR . $v['name'] . '.php';
-
- print ' '. $v['index'] . '. " . end($e) ."";
- if ( ! file_exists($file)) {
- //print "[code]";
- }
- print " ";
- }
- } else {
-
-
- $e = explode(' - ', $_GET['chapter']);
- $subchapters = false;
- $found = false;
-
- foreach ($i as $k => $v) {
- if ($found) {
- if (strncmp($v['name'], $_GET['chapter'], strlen($_GET['chapter'])) === 0) {
- $subchapters = true;
- }
- break;
- }
- $parts = explode(' - ', $v['name']);
- $indexes = explode('.', $v['index']);
-
- if ($v['name'] === $_GET['chapter']) {
- if (isset($i[($k - 1)])) {
- $prev = $i[($k - 1)];
- }
- if (isset($i[($k + 1)])) {
- $next = $i[($k + 1)];
- }
-
- $foundKey = ($k + 1);
- $found = $v;
- }
- }
- ?>
-
|
- - | -- | - -
Highlight content of ProgramListing using XSieve and Vim. Example:
-DocBook | -
-<programlisting role="xml"> -<para>Hello, <emphasis>&who;</emphasis - >!</para> <co id="who-entity"/> -</programlisting>- |
-
---|---|
HTML result | -
--<para>Hello, &who;!</para> (1)- |
-
Set the correct path to the script vimcolor-wrapper in colorer.xsl.
- -Create an XSLT wrapper which imports DocBook and colorer stylesheets:
- --<xsl:stylesheet ...> -... -<xsl:import href="..../docbook.xsl"> (1) -<xsl:import href="..../colorer.xsl"> (2) -<xsl:import href="..../colorer-html.xsl"> (3) - -... Your DocBook customization layer ... - -</xsl:stylesheet> -- -
(1) The path to the DocBook XSLT stylesheet. For example, /usr/share/xml/docbook/xsl-stylesheets/html/docbook.xsl
-(2) The path to the colorer XSLT stylesheet.
-(3) Or colorer-fo.xsl for FO output.
The package contains test files test.xml, testdoc.xsl and testdoc.html. Use them as the starting point:
- -xsieve -o testdoc.html --param callout.graphics 0 testdoc.xsl test.xml- - - diff --git a/manual/docbook/programlisting/mkdist.sh b/manual/docbook/programlisting/mkdist.sh deleted file mode 100644 index 5851cf3f8..000000000 --- a/manual/docbook/programlisting/mkdist.sh +++ /dev/null @@ -1,6 +0,0 @@ -rm -rf xsieve-programlisting.zip xsieve-programlisting -mkdir xsieve-programlisting -rsync -av --exclude CVS vimcolor xsieve-programlisting/ -cp colorer.xsl colorer-html.xsl testdoc.xsl index.html sxml-utils.scm colorer.scm run-colorer.scm test.xml testdoc.html xsieve-programlisting/ -zip xsieve-programlisting.zip -r xsieve-programlisting - diff --git a/manual/docbook/programlisting/run-colorer.scm b/manual/docbook/programlisting/run-colorer.scm deleted file mode 100644 index b4b40afde..000000000 --- a/manual/docbook/programlisting/run-colorer.scm +++ /dev/null @@ -1,51 +0,0 @@ -; Run colorer and return the result as SXML -; $Id: run-colorer.scm,v 1.6 2006/04/29 05:47:24 olpa Exp $ - -(define colorer-bin #f) -(define colorer-params #f) -(define colorer-param-type #f) -(define colorer-param-outfile #f) - -; Initialize colorer variables (only once) -(define (init-colorer-variables) - (if (not colorer-bin) (begin - (set! colorer-bin (x:eval "string($colorer.bin)")) - (set! colorer-params (x:eval "string($colorer.params)")) - (set! colorer-param-type (x:eval "string($colorer.param.type)")) - (set! colorer-param-outfile (x:eval "string($colorer.param.outfile)"))))) - -(define-macro (no-errors . body) - `(catch #t (lambda () ,@body) (lambda (dummy . args) #f))) - -(define (run-colorer program-text program-type) - ; Some sanity check - (init-colorer-variables) - (if (not (and program-text (> (string-length program-text) 0))) - #f - (let* ( - ; Construct command line to run the colorer - (infile (tmpnam)) ; for the program text - (outfile (tmpnam)) ; for the colored tokens - (cmdline (string-append - colorer-bin " " colorer-params " " - (if (and program-type (> (string-length program-type) 0)) - (string-append colorer-param-type program-type " ") - "") - colorer-param-outfile outfile " " infile))) - ;(display "Command line: ")(display cmdline)(newline) - ; Ignore errors - (no-errors - ; Write the program text to the file and execute the colorer - (with-output-to-file infile - (lambda () (display program-text))) - ;(system (string-append "cp " infile " lastin")) ; DEBUG - (system cmdline) - ;(system (string-append "cp " outfile " last")) ; DEBUG - ; Load the XML result, cleanup and return the result - (let* ( - (eval-str (string-append "document('file://" outfile "')")) - (tree (x:eval eval-str))) - (no-errors (delete-file outfile)) - (no-errors (delete-file infile)) - ; drop "*TOP*" and drop namespace declaration from "syn:syntax" - (cons 'syn:syntax (cdr (cdadar tree)))))))) diff --git a/manual/docbook/programlisting/run.sh b/manual/docbook/programlisting/run.sh deleted file mode 100644 index 277dd5f20..000000000 --- a/manual/docbook/programlisting/run.sh +++ /dev/null @@ -1 +0,0 @@ -~/p/xsieve/opt/bin/xsieve --xinclude -o testdoc.html testdoc.xsl testdoc.xml diff --git a/manual/docbook/programlisting/run2.sh b/manual/docbook/programlisting/run2.sh deleted file mode 100644 index 7150b7268..000000000 --- a/manual/docbook/programlisting/run2.sh +++ /dev/null @@ -1,2 +0,0 @@ -#~/p/xsieve/opt/bin/xsieve --xinclude -o testdoc.html testdoc.xsl /home/olpa/p/xsieve/doc/book/xsieve.xml -~/p/xsieve/opt/bin/xsieve -o testdoc.html testdoc.xsl xsieve.xml diff --git a/manual/docbook/programlisting/run3.sh b/manual/docbook/programlisting/run3.sh deleted file mode 100644 index 72bc7787f..000000000 --- a/manual/docbook/programlisting/run3.sh +++ /dev/null @@ -1 +0,0 @@ -~/p/xsieve/opt/bin/xsieve --xinclude -o testdoc.html colorer-one.xsl /home/olpa/p/xsieve/example/hello/doc/listing2.xml diff --git a/manual/docbook/programlisting/run4.sh b/manual/docbook/programlisting/run4.sh deleted file mode 100644 index 5c8215d0f..000000000 --- a/manual/docbook/programlisting/run4.sh +++ /dev/null @@ -1,2 +0,0 @@ -#~/p/xsieve/opt/bin/xsieve --xinclude -o testdoc.html testdoc.xsl /home/olpa/p/xsieve/doc/book/xsieve.xml -~/p/xsieve/opt/bin/xsieve -o testdoc.html --param callout.graphics 0 testdoc.xsl /home/olpa/p/xsieve/doc/project/xtech2006/programlisting/test.xml diff --git a/manual/docbook/programlisting/sxml-utils.scm b/manual/docbook/programlisting/sxml-utils.scm deleted file mode 100644 index 1b42fd514..000000000 --- a/manual/docbook/programlisting/sxml-utils.scm +++ /dev/null @@ -1,35 +0,0 @@ -; $Id: sxml-utils.scm,v 1.1 2006/03/02 04:32:58 olpa Exp $ -; A copy-paste of a part of the SXML library - -; from CVS: SSAX/lib/SXML-tree-trans.scm -(define (pre-post-order tree bindings) - (let* ((default-binding (assq '*default* bindings)) - (text-binding (or (assq '*text* bindings) default-binding)) - (text-handler ; Cache default and text bindings - (and text-binding - (if (procedure? (cdr text-binding)) - (cdr text-binding) (cddr text-binding))))) - (let loop ((tree tree)) - (cond - ((null? tree) '()) - ((not (pair? tree)) - (let ((trigger '*text*)) - (if text-handler (text-handler trigger tree) - (error "Unknown binding for " trigger " and no default")))) - ((not (symbol? (car tree))) (map loop tree)) ; tree is a nodelist - (else ; tree is an SXML node - (let* ((trigger (car tree)) - (binding (or (assq trigger bindings) default-binding))) - (cond - ((not binding) - (error "Unknown binding for " trigger " and no default")) - ((not (pair? (cdr binding))) ; must be a procedure: handler - (apply (cdr binding) trigger (map loop (cdr tree)))) - ((eq? '*preorder* (cadr binding)) - (apply (cddr binding) tree)) - ((eq? '*macro* (cadr binding)) - (loop (apply (cddr binding) tree))) - (else ; (cadr binding) is a local binding - (apply (cddr binding) trigger - (pre-post-order (cdr tree) (append (cadr binding) bindings))) - )))))))) diff --git a/manual/docbook/programlisting/test-one.scm b/manual/docbook/programlisting/test-one.scm deleted file mode 100644 index d63d38e06..000000000 --- a/manual/docbook/programlisting/test-one.scm +++ /dev/null @@ -1,13 +0,0 @@ -(load "sxml-utils.scm") -(load "colorer.scm") - -(define main-tree '(programlisting (*PI* a "b") (@ (format "linespecific")) "
A sample code: