From: Keith Fahlgren Date: Mon, 9 Mar 2009 00:26:05 +0000 (+0000) Subject: Remove a nesting of

inside

for refclass (made XHTML* invalid, made HTML silly) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17636ebfb2900a36d7d9d7938f43a439409bbabe;p=docbook-dsssl Remove a nesting of

inside

for refclass (made XHTML* invalid, made HTML silly) --- diff --git a/xsl/epub/bin/spec/epub_regressions_spec.rb b/xsl/epub/bin/spec/epub_regressions_spec.rb index cc679ddff..726038419 100755 --- a/xsl/epub/bin/spec/epub_regressions_spec.rb +++ b/xsl/epub/bin/spec/epub_regressions_spec.rb @@ -116,6 +116,13 @@ describe DocBook::Epub do blockquotepre_epubfile.should be_valid_epub end + it "should render refentry/refclass without duplicating

s" do + refclass_epub = DocBook::Epub.new(File.join(@filedir, "refclass.xml"), @tmpdir) + refclass_epubfile = File.join(@tmpdir, "refclassepub.epub") + refclass_epub.render_to_file(refclass_epubfile, $DEBUG) + refclass_epubfile.should be_valid_epub + end + after(:all) do FileUtils.rm_r(@tmpdir, :force => true) end diff --git a/xsl/epub/bin/spec/files/refclass.xml b/xsl/epub/bin/spec/files/refclass.xml new file mode 100644 index 000000000..6340d7dff --- /dev/null +++ b/xsl/epub/bin/spec/files/refclass.xml @@ -0,0 +1,17 @@ + + + + XSLTProcessor + Transformiert XML mit XSLT-Stylesheets + Firefox 1.0, Safari 2.01, Opera 9 + Object → XSLTProcessor + + + Konstruktor + new XSLTProcessor( ) + + + Methoden + + + diff --git a/xsl/html/refentry.xsl b/xsl/html/refentry.xsl index ebff78ff9..7be57c606 100644 --- a/xsl/html/refentry.xsl +++ b/xsl/html/refentry.xsl @@ -196,15 +196,13 @@ -

- - - - : - - - -

+ + + + : + + +