--- /dev/null
+<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
+<!ENTITY lt "&#60;">
+<!ENTITY gt ">">
+<!ENTITY RE '(make formatting-instruction data: "
+")'>
+<!ENTITY blank '(make formatting-instruction data: " ") (empty-sosofo)'>
+]>
+
+<style-sheet>
+<style-specification>
+<style-specification-body>
+
+;; 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;
+ ))
+
+</style-specification-body>
+</style-specification>
+</style-sheet>