diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
index 0d4d3f0202e7..2427657744bb 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
@@ -953,7 +953,8 @@ CPPUNIT_TEST_FIXTURE(Test, testcantSplit)
// writing during export was causing problem that all the cell data used to come on same page
xmlDocUniquePtr pXmlDoc = parseExport(u"word/document.xml"_ustr);
assertXPath(pXmlDoc, "/w:document/w:body/w:tbl[1]/w:tr/w:trPr/w:cantSplit",0);
- assertXPath(pXmlDoc, "/w:document/w:body/w:tbl[2]/w:tr/w:trPr/w:cantSplit","val",u"true");
+ // this is how true is represented, otherwise OOXML validator complains:
+ assertXPathNoAttribute(pXmlDoc, "/w:document/w:body/w:tbl[2]/w:tr/w:trPr/w:cantSplit", "val");
}
CPPUNIT_TEST_FIXTURE(Test, testDontSplitTable)
diff --git a/sw/source/filter/ww8/docxtableexport.cxx b/sw/source/filter/ww8/docxtableexport.cxx
index c9ce5f68a6b2..8e718b1c161f 100644
--- a/sw/source/filter/ww8/docxtableexport.cxx
+++ b/sw/source/filter/ww8/docxtableexport.cxx
@@ -806,7 +806,7 @@ void DocxAttributeOutput::TableCanSplit(
// if rSplittable is true then no need to write
// as default row prop is allow row to break across page.
if (!rSplittable.GetValue())
- m_pSerializer->singleElementNS(XML_w, XML_cantSplit, FSNS(XML_w, XML_val), "true");
+ m_pSerializer->singleElementNS(XML_w, XML_cantSplit);
}
void DocxAttributeOutput::TableBidi(