From f8da775795052ad2eb879970c115d2e2a2fe8c81 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 12 Feb 2018 17:53:48 +0100 Subject: EPUB export, fixed layout: fix validation error with images The "xlink" prefix for the "xlink:href" attribute on the "image" element was not bound. Change-Id: I473a0b1612b4842cf84a264960bb28a9f19600e5 Reviewed-on: https://gerrit.libreoffice.org/49612 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- writerperfect/qa/unit/EPUBExportTest.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'writerperfect') diff --git a/writerperfect/qa/unit/EPUBExportTest.cxx b/writerperfect/qa/unit/EPUBExportTest.cxx index 47e84ebf1bbc..81d70591a0da 100644 --- a/writerperfect/qa/unit/EPUBExportTest.cxx +++ b/writerperfect/qa/unit/EPUBExportTest.cxx @@ -874,6 +874,11 @@ void EPUBExportTest::testSVG() // one, causing a validation error. OString aActual(static_cast(aMemoryStream.GetBuffer()), aExpected.getLength()); CPPUNIT_ASSERT_EQUAL(aExpected, aActual); + + // This failed, we used the xlink attribute namespace, but we did not + // define its URL. + mpXmlDoc = parseExport("OEBPS/images/image0001.svg"); + assertXPathNSDef(mpXmlDoc, "/svg:svg", "xlink", "http://www.w3.org/1999/xlink"); } CPPUNIT_TEST_SUITE_REGISTRATION(EPUBExportTest); -- cgit v1.2.3