[jsword-svn] bibledesktop/resource/xsl/cswing s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Fri Mar 18 18:57:11 MST 2005


Update of /cvs/jsword/bibledesktop/resource/xsl/cswing
In directory www.crosswire.org:/tmp/cvs-serv10766/resource/xsl/cswing

Modified Files:
	simple.xsl 
Log Message:
Made Book the primary interface to a module and put BookMetaData within it. All of BookMetaData is accessible through the Book interface.

Index: simple.xsl
===================================================================
RCS file: /cvs/jsword/bibledesktop/resource/xsl/cswing/simple.xsl,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** simple.xsl	11 Mar 2005 13:07:37 -0000	1.12
--- simple.xsl	19 Mar 2005 01:57:09 -0000	1.13
***************
*** 240,244 ****
      <xsl:choose>
   	  <xsl:when test="$VLine = 'true'">
!         <xsl:apply-templates/><br/>
        </xsl:when>
        <xsl:otherwise>
--- 240,244 ----
      <xsl:choose>
   	  <xsl:when test="$VLine = 'true'">
!         <div class="l"><xsl:apply-templates/><xsl:text> </xsl:text></div>
        </xsl:when>
        <xsl:otherwise>
***************
*** 485,490 ****
    
    <!-- Avoid adding whitespace -->
    <xsl:template match="l">
!     <div class="l"><xsl:apply-templates/></div>
    </xsl:template>
    
--- 485,491 ----
    
    <!-- Avoid adding whitespace -->
+   <!-- We add a single space to the end of the line because of a bug in Sun's rendering. -->
    <xsl:template match="l">
!     <div class="l"><xsl:apply-templates/><xsl:text> </xsl:text></div>
    </xsl:template>
    
***************
*** 492,497 ****
    <!-- While a BR is a break, if it is immediately followed by punctuation,
         indenting this rule can introduce whitespace.
      -->
!   <xsl:template match="lb"><br/></xsl:template>
    
    <!-- Avoid adding whitespace -->
--- 493,499 ----
    <!-- While a BR is a break, if it is immediately followed by punctuation,
         indenting this rule can introduce whitespace.
+        We use <div class="l"><xsl:text> </xsl:text></div> here because <br/> does not work. Nor does <br>
      -->
!   <xsl:template match="lb"><div class="l"><xsl:text> </xsl:text></div></xsl:template>
    
    <!-- Avoid adding whitespace -->



More information about the jsword-svn mailing list