Commits

Anonymous committed 9f7617f

Incorporated the changes from the hard-disk to enhance the stylesheets and
the makefile.

Comments (0)

Files changed (2)

share/make/main-docbook.mak

 # HTML.
 
 $(HTML_XSL_TARGET_FILE_IN_DIR): $(XSL_SOURCES)
-	$(XMLTO) -m $(XSLT_SS) -o $(HTML_XSL_TARGET) xhtml $<
+	$(XMLTO) --stringparam "docmake.output.format=xhtml" -m $(XSLT_SS) -o $(HTML_XSL_TARGET) xhtml $<
 
 $(HTML_OTHER_SOURCES_DEST) :: $(HTML_XSL_TARGET)/%: %
 	cp -f $< $@
 	db2html $(DB2_HTML_FLAGS) $(MAIN_SOURCE)
 
 $(HTML_ONE_CHUNCK_TARGET_FILE): $(XSL_SOURCES)
-	$(XMLTO) -m /usr/share/sgml/docbook/xsl-stylesheets/xhtml/onechunk.xsl -o $(HTML_XSL_TARGET)-onechunk xhtml $<
+	$(XMLTO) --stringparam "docmake.output.format=xhtml" -m /usr/share/sgml/docbook/xsl-stylesheets/xhtml/onechunk.xsl -o $(HTML_XSL_TARGET)-onechunk xhtml $<
 
 
 # PDF and RTF.
 # $(PDF_DOC): $(DSSSL_SOURCES)
 #	db2pdf $(DB2_PRINT_FLAGS) $(MAIN_SOURCE)
 $(FO_DOC): $(XSL_SOURCES)
-	$(XMLTO) -m $(XSLT_SS) fo $<
+	$(XMLTO) --stringparam "docmake.output.format=fo" -m $(XSLT_SS) fo $<
 
 $(PDF_DOC): $(FO_DOC)
 	fop -fo $< -pdf $@

share/sgml/docbook-shlomif/xsl-stylesheets/shlomif-essays.xsl

 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version='1.0'>
+    <xsl:param name="use.id.as.filename">1</xsl:param>
     <xsl:param name="html.stylesheet">style.css</xsl:param>
     <xsl:param name="itemizedlist.propagates.style">1</xsl:param>
     <xsl:param name="chunker.output.doctype-public">-//W3C//DTD XHTML 1.0 Transitional//EN</xsl:param>
     http://www.mail-archive.com/fop-users%40xmlgraphics.apache.org/msg06170.html
     -->
     <xsl:param name="fop1.extensions">1</xsl:param>
+
+
 <xsl:template match="itemizedlist">
+    <xsl:choose>
+    <xsl:when test="docmake.output.format = 'xhtml'">
+        <xsl:call-template name="html_itemized_list" />
+    </xsl:when>
+    <xsl:otherwise>
+        <xsl:apply-imports />
+    </xsl:otherwise>
+    </xsl:choose>
+</xsl:template>
+
+<xsl:template name="html_itemized_list">
     <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
     <xsl:call-template name="anchor"/>
     <xsl:if test="title">
       <xsl:call-template name="formal.object.heading"/>
     </xsl:if>
 
-    <xsl:apply-templates select="*[not(self::listitem                                    or self::title                                    or self::titleabbrev)]"/>
+    <xsl:apply-templates select="*[not(self::listitem or self::title 
+        or self::titleabbrev)]"/>
 
     <ul>
          <xsl:if test="@role">
 
 <!-- Insert some AdSense Ads -->
 <xsl:template name="user.header.navigation">
-    <div class="center">
+    <div class="center ads_top">
     <script type="text/javascript">
 google_ad_client = "pub-2480595666283917";
 google_ad_width = 468;
 </script>
     </div>
 </xsl:template>
+
+
 </xsl:stylesheet>