]> granicus.if.org Git - docbook-dsssl/commitdiff
Resolve some actual regressions in date output spotted by more recent versions of...
authorKeith Fahlgren <abdelazer@users.sourceforge.net>
Wed, 11 Aug 2010 04:48:52 +0000 (04:48 +0000)
committerKeith Fahlgren <abdelazer@users.sourceforge.net>
Wed, 11 Aug 2010 04:48:52 +0000 (04:48 +0000)
xsl/epub/bin/spec/epub_spec.rb
xsl/epub/bin/spec/examples/AMasqueOfDays.epub
xsl/epub/docbook.xsl

index 6a68a8fb3bf634bcb4215c16e1c2d3168fcc8c5a..7dac5faeccecf1bfa137a42e5aee396057bba3ed 100755 (executable)
@@ -170,7 +170,7 @@ describe DocBook::Epub do
     begin
       tmpdir = File.join(Dir::tmpdir(), "epubinclusiontest"); Dir.mkdir(tmpdir) rescue Errno::EEXIST
 
-      success = system(%Q(unzip -q -d "#{File.expand_path(tmpdir)}" -o #{File.expand_path(@manygraphic_epubfile)}"))
+      success = system(%Q(unzip -q -d "#{File.expand_path(tmpdir)}" -o "#{File.expand_path(@manygraphic_epubfile)}"))
       raise "Could not unzip #{@manygraphic_epubfile}" unless success
       glob = Dir.glob(File.join(tmpdir, "**", "*.*"))
       pdfs_in_glob = glob.find_all {|file| file =~ /\.pdf/i}
@@ -357,6 +357,7 @@ describe DocBook::Epub do
       # include the title, so it should only appear in the part file and the
       # TOC
       files_including_part_title = glob.find_all {|html_file| File.open(html_file).readlines.to_s =~ />[^<]*Part One Title/}
+      p files_including_part_title if $DEBUG
       files_including_part_title.length.should == 2
     rescue => e
       raise e
index 8fbe3570dc6843674c0e7b8204d71d967a4a24a8..1bfbab70445a9255498ca1c95b8ec80e0a8f3dc5 100644 (file)
Binary files a/xsl/epub/bin/spec/examples/AMasqueOfDays.epub and b/xsl/epub/bin/spec/examples/AMasqueOfDays.epub differ
index 39d87c27f4066e5fa7d5180d3b43b6326292895f..8ab26c01a15da020d8952aaa9088bb2cb9b39f56 100644 (file)
     </xsl:variable>
     <xsl:if test="not(../date)">
       <xsl:element name="dc:date">
-        <xsl:value-of select="$copyright.date"/>
+        <xsl:call-template name="copyright.years">
+          <xsl:with-param name="years" select="year[last()]"/>
+          <xsl:with-param name="print.ranges" select="0"/>
+          <xsl:with-param name="single.year.ranges" select="0"/>
+        </xsl:call-template>
       </xsl:element>
     </xsl:if>
     <xsl:element name="dc:rights">