From: Keith Fahlgren Date: Fri, 10 Apr 2009 21:53:24 +0000 (+0000) Subject: Corrected namespace declarations for literal XHTML elements to make them serialize... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be25f7bef4a73441c671d5798af8208a3e2ace95;p=docbook-dsssl Corrected namespace declarations for literal XHTML elements to make them serialize "normally" --- diff --git a/xsl/epub/bin/spec/epub_regressions_spec.rb b/xsl/epub/bin/spec/epub_regressions_spec.rb index 726038419..516aeab6e 100755 --- a/xsl/epub/bin/spec/epub_regressions_spec.rb +++ b/xsl/epub/bin/spec/epub_regressions_spec.rb @@ -123,6 +123,11 @@ describe DocBook::Epub do refclass_epubfile.should be_valid_epub end + it "should not use namespace prefixes for the OPF manifest because mobigen is unable of handling XML input" do + opf_lns = opf_lines('refclass.xml', @filedir) + opf_lns.to_s.should_not =~ /opf:manifest/ + end + after(:all) do FileUtils.rm_r(@tmpdir, :force => true) end diff --git a/xsl/epub/docbook.xsl b/xsl/epub/docbook.xsl index 0da765c7c..3a895b2f5 100644 --- a/xsl/epub/docbook.xsl +++ b/xsl/epub/docbook.xsl @@ -221,11 +221,11 @@ - + 2.0 - + @@ -325,7 +325,7 @@ - + cover @@ -700,9 +700,9 @@ - + - + @@ -713,7 +713,7 @@ - + @@ -730,13 +730,13 @@ - + - + @@ -753,7 +753,7 @@ - + yes @@ -780,7 +780,7 @@ - + @@ -790,16 +790,16 @@ - + - + application/x-dtbncx+xml - + application/xhtml+xml @@ -811,7 +811,7 @@ - + text/css css @@ -819,7 +819,7 @@ - + @@ -830,7 +830,7 @@ - + epub.embedded.font @@ -902,7 +902,7 @@ - + @@ -1010,7 +1010,7 @@ - + @@ -1058,7 +1058,7 @@ - + @@ -1125,7 +1125,7 @@ - + application/xhtml+xml @@ -1471,17 +1471,17 @@ - - - Cover - + + + Cover + text/css img { max-width: 100%; } - - + +