summaryrefslogtreecommitdiffstats
path: root/release/doc/share/sgml/release.dsl
diff options
context:
space:
mode:
authorbmah <bmah@FreeBSD.org>2001-05-02 22:02:50 +0000
committerbmah <bmah@FreeBSD.org>2001-05-02 22:02:50 +0000
commitd917f606f3edba70f558ca5105b6d31f1d87c910 (patch)
tree9bbf5944e17823bf08e905a7332e8917e0d7972d /release/doc/share/sgml/release.dsl
parent4e62455888b4ba195b2d725aa8f15b93e3f74585 (diff)
downloadFreeBSD-src-d917f606f3edba70f558ca5105b6d31f1d87c910.zip
FreeBSD-src-d917f606f3edba70f558ca5105b6d31f1d87c910.tar.gz
RELNOTESng infrastructure fixes:
1. There is now only one RELNOTESng stylesheet; the architecture-specific stylesheets (to handle different values of the arch= attribute) are gone. 2. Several Makefile variable definitions were factored into doc.relnotes.mk. Submitted by: dd
Diffstat (limited to 'release/doc/share/sgml/release.dsl')
-rw-r--r--release/doc/share/sgml/release.dsl32
1 files changed, 32 insertions, 0 deletions
diff --git a/release/doc/share/sgml/release.dsl b/release/doc/share/sgml/release.dsl
new file mode 100644
index 0000000..a1666f6
--- /dev/null
+++ b/release/doc/share/sgml/release.dsl
@@ -0,0 +1,32 @@
+<!-- $FreeBSD$ -->
+
+<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
+<!ENTITY freebsd.dsl PUBLIC "-//FreeBSD//DOCUMENT DocBook Stylesheet//EN" CDATA DSSSL>
+]>
+
+<style-sheet>
+ <style-specification use="docbook">
+ <style-specification-body>
+
+; The architecture we're building for. We need to define this as a
+; procedure, because we may not be able to evaluate it until we are
+; at a point in formatting where (current-node) is defined.
+
+(default
+ (let* ((arch (attribute-string (normalize "arch")))
+ (for-arch (entity-text "arch")))
+ (if (or (equal? arch #f)
+ (equal? arch ""))
+ (next-match)
+; We can do a lot more flexible things here. Like it'd be nice to
+; tokenize the arch= attribute and do comparisons of for-arch against
+; different substrings.
+ (cond ((equal? arch for-arch) (next-match))
+ (else (empty-sosofo))))))
+
+ </style-specification-body>
+ </style-specification>
+
+ <external-specification id="docbook" document="freebsd.dsl">
+</style-sheet>
+
OpenPOWER on IntegriCloud