Revision: 57353
          http://sourceforge.net/p/brlcad/code/57353
Author:   tbrowder2
Date:     2013-08-31 11:55:11 +0000 (Sat, 31 Aug 2013)
Log Message:
-----------
add style sheets specifically for DocBook article types

Added Paths:
-----------
    
brlcad/trunk/doc/docbook/resources/brlcad/brlcad-article-fo-stylesheet.xsl.in
    
brlcad/trunk/doc/docbook/resources/brlcad/brlcad-article-xhtml-stylesheet.xsl.in

Added: 
brlcad/trunk/doc/docbook/resources/brlcad/brlcad-article-fo-stylesheet.xsl.in
===================================================================
--- 
brlcad/trunk/doc/docbook/resources/brlcad/brlcad-article-fo-stylesheet.xsl.in   
                            (rev 0)
+++ 
brlcad/trunk/doc/docbook/resources/brlcad/brlcad-article-fo-stylesheet.xsl.in   
    2013-08-31 11:55:11 UTC (rev 57353)
@@ -0,0 +1,77 @@
+<xsl:stylesheet
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+  xmlns:fo="http://www.w3.org/1999/XSL/Format";
+  xmlns:d="http://docbook.org/ns/docbook";
+  exclude-result-prefixes="d"
+  version='1.0'
+>
+
+  <!-- a stylesheet with common items for fo products -->
+
+  <!-- the base stylesheet (resolved by this name in the xml catalog file) -->
+  <xsl:import 
href="file:///@DOCBOOK_BINARY_DIR@/doc/docbook/resources/other/standard/xsl/fo/docbook.xsl"/>
+
+  <!-- common param inputs, etc. -->
+  <xsl:import 
href="file:///@DOCBOOK_BINARY_DIR@/doc/docbook/resources/brlcad/brlcad-common.xsl"/>
+
+  <!-- font info -->
+  <xsl:import 
href="file:///@DOCBOOK_BINARY_DIR@/doc/docbook/resources/brlcad/brlcad-fonts.xsl"/>
+
+  <!-- for itemized lists -->
+  <xsl:template name="itemizedlist.label.markup">
+    <xsl:param name="itemsymbol">bullet</xsl:param>
+    <xsl:choose>
+      <xsl:when test="$itemsymbol='none'"></xsl:when>
+      <xsl:when test="$itemsymbol='disc'">&#x2022;</xsl:when>
+      <xsl:when test="$itemsymbol='bullet'">&#x2022;</xsl:when>
+      <xsl:when test="$itemsymbol='endash'">&#x2013;</xsl:when>
+      <xsl:when test="$itemsymbol='emdash'">&#x2014;</xsl:when>
+
+      <xsl:when test="$itemsymbol='square'">&#x25A0;</xsl:when>
+      <xsl:when test="$itemsymbol='box'">&#x25A0;</xsl:when>
+      <xsl:when test="$itemsymbol='smallblacksquare'">&#x25AA;</xsl:when>
+      <xsl:when test="$itemsymbol='circle'">&#x25CB;</xsl:when>
+      <xsl:when test="$itemsymbol='opencircle'">&#x25CB;</xsl:when>
+
+      <xsl:when test="$itemsymbol='whitesquare'">&#x25A1;</xsl:when>
+      <xsl:when test="$itemsymbol='smallwhitesquare'">&#x25AB;</xsl:when>
+      <xsl:when test="$itemsymbol='round'">&#x25CF;</xsl:when>
+      <xsl:when test="$itemsymbol='blackcircle'">&#x25CF;</xsl:when>
+      <xsl:when test="$itemsymbol='whitebullet'">&#x25E6;</xsl:when>
+
+      <xsl:when test="$itemsymbol='triangle'">&#x2023;</xsl:when>
+      <xsl:when test="$itemsymbol='point'">&#x203A;</xsl:when>
+      <xsl:otherwise>&#x25CF;</xsl:otherwise><!-- bullet -->
+    </xsl:choose>
+  </xsl:template>
+
+  <!-- define defaults for first three itemized list defaults -->
+  <xsl:template name="next.itemsymbol">
+    <xsl:param name="itemsymbol" select="'default'"/>
+    <xsl:choose>
+      <!-- Change this list if you want to change the order of symbols -->
+      <xsl:when test="$itemsymbol = 'bullet'">whitebullet</xsl:when>
+      <xsl:when test="$itemsymbol = 'whitebullet'">smallblacksquare</xsl:when>
+      <xsl:otherwise>bullet</xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <xsl:attribute-set name="monospace.verbatim.properties">
+    <xsl:attribute name="font-size">9pt</xsl:attribute>
+    <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
+  </xsl:attribute-set>
+  
+  <xsl:param name="shade.verbatim" select="1"/>
+  
+  <xsl:attribute-set name="shade.verbatim.style">
+    <xsl:attribute name="border">0.5pt solid blue</xsl:attribute>
+    <xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
+    <xsl:attribute name="padding-top">0.25em</xsl:attribute>
+    <xsl:attribute name="padding-bottom">0.25em</xsl:attribute>
+  </xsl:attribute-set>
+  
+  <xsl:attribute-set name="monospace.properties">
+    <xsl:attribute name="font-size">8.0pt</xsl:attribute>
+  </xsl:attribute-set>
+
+</xsl:stylesheet>


Property changes on: 
brlcad/trunk/doc/docbook/resources/brlcad/brlcad-article-fo-stylesheet.xsl.in
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: 
brlcad/trunk/doc/docbook/resources/brlcad/brlcad-article-xhtml-stylesheet.xsl.in
===================================================================
--- 
brlcad/trunk/doc/docbook/resources/brlcad/brlcad-article-xhtml-stylesheet.xsl.in
                            (rev 0)
+++ 
brlcad/trunk/doc/docbook/resources/brlcad/brlcad-article-xhtml-stylesheet.xsl.in
    2013-08-31 11:55:11 UTC (rev 57353)
@@ -0,0 +1,47 @@
+<xsl:stylesheet
+       xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+       xmlns:d="http://docbook.org/ns/docbook";
+       exclude-result-prefixes="d"
+       version='1.0'
+       >
+
+       <!-- the base stylesheet (resolved by this name
+       in the xml catalog file) -->
+       <xsl:import 
href="file:///@DOCBOOK_BINARY_DIR@/doc/docbook/resources/other/standard/xsl/xhtml-1_1/docbook.xsl"/>
+
+       <!-- common param inputs, etc. -->
+       <xsl:import 
href="file:///@DOCBOOK_BINARY_DIR@/doc/docbook/resources/brlcad/brlcad-common.xsl"/>
+
+       <!-- the BRL-CAD css base for all html -->
+       <xsl:param name="html.stylesheet">../../css/brlcad.css</xsl:param>
+
+       <!-- 
==================================================================== -->
+
+       <!-- other customizations -->
+       <!-- line breaks, DB p. 245 -->
+       <xsl:template match="processing-instruction('linebreak')">
+               <br />
+       </xsl:template>
+
+       <xsl:param name="default.image.width">5in</xsl:param>
+       <xsl:param name="chunker.output.indent">yes</xsl:param>
+
+       <!-- html header/footer -->
+       <xsl:param name="navig.showtitles">1</xsl:param>
+       <!-- from Bob Stayton's book: -->
+       <xsl:param name="local.l10n.xml" select="document('')" />
+       <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0";>
+               <l:l10n language="en">
+                       <l:gentext key="nav-home" text="Table of Contents"/>
+               </l:l10n>
+       </l:i18n>
+
+
+       <!-- 
==================================================================== -->
+       <!-- this is a modified header nav template from html/chunk-common.xsl 
version 1.76.1 -->
+
+       <!--
+       <xsl:import 
href="/@DOCBOOK_SOURCE_DIR@/doc/docbook/resources/brlcad/brlcad-xhtml-header-navigation.xsl"/>
+       -->
+
+</xsl:stylesheet>


Property changes on: 
brlcad/trunk/doc/docbook/resources/brlcad/brlcad-article-xhtml-stylesheet.xsl.in
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to