From: Norman Walsh Date: Mon, 2 Apr 2001 22:12:36 +0000 (+0000) Subject: Initial checkin X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d993e019bec7cea7b558e1b017865211ec23103;p=docbook-dsssl Initial checkin --- diff --git a/gentext/dsssl/dsssl.dsl b/gentext/dsssl/dsssl.dsl new file mode 100644 index 000000000..b9955efb9 --- /dev/null +++ b/gentext/dsssl/dsssl.dsl @@ -0,0 +1,71 @@ + + + + +]> + + + + + +;; This stylesheet would work, except that files like ../locale/ca.xml +;; have a doctype declaration but no DTD and Jade doesn't like that. + +;; $Id$ + +(declare-flow-object-class formatting-instruction + "UNREGISTERED::James Clark//Flow Object Class::formatting-instruction") + +(define debug + (external-procedure "UNREGISTERED::James Clark//Procedure::debug")) + +(root + (make sequence + + (make formatting-instruction + data: "<!-- This file is generated automatically. -->") + &RE; + (make formatting-instruction + data: "<!-- Do not edit this file by hand! -->") + &RE; + (make formatting-instruction + data: "<!-- See http://docbook.sourceforge.net/ -->") + &RE; + &RE; + + (process-children))) + +(element locale + (process-node-list (select-elements (children (current-node)) "gentext"))) + +(element gentext + (make sequence + (make formatting-instruction + data: "<!ENTITY ") + (literal (attribute-string "key")) + (if (< (string-length (attribute-string "key")) 15) ␣) + (if (< (string-length (attribute-string "key")) 14) ␣) + (if (< (string-length (attribute-string "key")) 13) ␣) + (if (< (string-length (attribute-string "key")) 12) ␣) + (if (< (string-length (attribute-string "key")) 11) ␣) + (if (< (string-length (attribute-string "key")) 10) ␣) + (if (< (string-length (attribute-string "key")) 9) ␣) + (if (< (string-length (attribute-string "key")) 8) ␣) + (if (< (string-length (attribute-string "key")) 7) ␣) + (if (< (string-length (attribute-string "key")) 6) ␣) + (if (< (string-length (attribute-string "key")) 5) ␣) + (if (< (string-length (attribute-string "key")) 4) ␣) + (if (< (string-length (attribute-string "key")) 3) ␣) + (if (< (string-length (attribute-string "key")) 2) ␣) + (if (< (string-length (attribute-string "key")) 1) ␣) + (make formatting-instruction data: "\"") + (make formatting-instruction data: (attribute-string "text")) + (make formatting-instruction data: "\">") + &RE; + )) + + + +