From abdb82bb53951059298115d076c8cde4cbc74323 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 9 Nov 2005 11:49:28 +0000 Subject: [PATCH] Changed build to generate a "html-synop.xsl" file and to have it imported into the driver stylesheet. The build now uses the newly added html2roff.xsl stylesheet to transform the ../xhtml/synop.xsl file to generate the html-synop.xsl file. The only transformation it currently does is to transform
instances into line breaks and to transform

 instances into roff "no fill region" markup.

This change is a cheap way to enable the manpages stylesheet to
correctly handle OO synopsis content, which it did not handle
correctly previously.
---
 xsl/manpages/.cvsignore    |  1 +
 xsl/manpages/Makefile      |  7 +++++-
 xsl/manpages/docbook.xsl   |  5 ++--
 xsl/manpages/html2roff.xsl | 50 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+), 3 deletions(-)
 create mode 100644 xsl/manpages/html2roff.xsl

diff --git a/xsl/manpages/.cvsignore b/xsl/manpages/.cvsignore
index bf7e41f8e..6aec73cae 100644
--- a/xsl/manpages/.cvsignore
+++ b/xsl/manpages/.cvsignore
@@ -3,3 +3,4 @@ param.xml
 param.xsl
 profile-docbook.xsl
 xref.xsl
+html-synop.xsl
diff --git a/xsl/manpages/Makefile b/xsl/manpages/Makefile
index c1817512e..2c1725d3b 100644
--- a/xsl/manpages/Makefile
+++ b/xsl/manpages/Makefile
@@ -2,10 +2,11 @@ include ../../cvstools/Makefile.incl
 
 PARAMPROF=.param.profiled
 PARAMSTRIP=.param.stripped
+MAKE_SYNOP=html2roff.xsl
 
 include Makefile.param
 
-all: param.xsl
+all: param.xsl html-synop.xsl
 
 xml: param.xml
 
@@ -32,7 +33,11 @@ Makefile.param:
 	../../cvstools/paramchk -m $@ param.xweb
 	make
 
+html-synop.xsl: ../xhtml/synop.xsl
+	$(XSLT) $< $(MAKE_SYNOP) $@
+
 clean:
 	$(RM) param.xml param.html param.xsl
+	$(RM) html-synop.xsl
 	$(RM) Makefile.param
 	echo "# foo" > Makefile.param
diff --git a/xsl/manpages/docbook.xsl b/xsl/manpages/docbook.xsl
index 6524db28b..ba5f4731e 100644
--- a/xsl/manpages/docbook.xsl
+++ b/xsl/manpages/docbook.xsl
@@ -4,8 +4,9 @@
                 exclude-result-prefixes="exsl"
                 version='1.0'>
 
-  
-  
+  
+  
+   
 
   
+
+
+
+
+
+
+
+
+
+
+
+  
+
+  
+    
+      
+    
+  
+
+  
+
+  
+    

+  
+
+  
+    .nf

+    
+      
+    
+    
.fi

+  
+
+
-- 
2.40.0