This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Bug with %generate-legalnotice-link% and html-manifest
- To: docbook-apps at lists dot oasis-open dot org
- Subject: DOCBOOK-APPS: Bug with %generate-legalnotice-link% and html-manifest
- From: Nik Clayton <nik at nothing-going-on dot demon dot co dot uk>
- Date: Tue, 13 Feb 2001 20:08:26 +0000
- Organization: Nik at home, where there's nothing going on
Hi folks,
I've just uncovered a small bug in Norm's stylesheets.
If you have %generate-legalnotice-link% and html-manifest both set to
true, the name of the generated legalnotice files is not written to the
manifest file.
My first attempt at a patch is here, but it doesn't work, and I don't
know why (actually, I do -- DSSSL ignorance on my part). Any
suggestions for a fix gratefully accepted.
N
--- docbook.dsl.org Tue Feb 13 19:36:44 2001
+++ docbook.dsl Tue Feb 13 20:02:22 2001
@@ -387,7 +387,21 @@
")
(loop (next-chunk-element node))))))
(empty-sosofo))
- (empty-sosofo))))
+ (empty-sosofo)))
+
+ (element legalnotice
+ (if %generate-legalnotice-link%
+ (if html-manifest
+ (make entity
+ system-id: (html-entity-file html-manifest-filename)
+ (make sequence
+ (make formatting-instruction data: (html-entity-file
+ $legalnotice-link-file$
+ (current-node)))
+ (make formatting-instruction data: "
+")
+ (empty-sosofo))
+ (empty-sosofo))))))
;; Make text that comes from unimplemented tags easy to spot
(default
--
Internet connection, $19.95 a month. Computer, $799.95. Modem, $149.95.
Telephone line, $24.95 a month. Software, free. USENET transmission,
hundreds if not thousands of dollars. Thinking before posting, priceless.
Somethings in life you can't buy. For everything else, there's MasterCard.
-- Graham Reed, in the Scary Devil Monastery