summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-06-04 10:30:19 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-06-04 12:28:26 +0200
commit2b62ead4dab909438a1d68f879f6f0329ca9291d (patch)
treee64e48354e5a27e5dcb151bdd7c806b177b82d71 /test
parentc82d96da1c9a03e1742f2f5a7a93b9993c96a0a0 (diff)
sc: use XmlTestTools::registerOOXMLNamespaces()
after 1ba1bb1cacdc8825d01559859100a2b575967e55 <test: introduce XmlTestTools::registerOOXMLNamespaces() to reduce copy&paste> Change-Id: I5f8fcb977233c30bae74e7cc9fde45d41a523b85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116686 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'test')
-rw-r--r--test/source/xmltesttools.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/source/xmltesttools.cxx b/test/source/xmltesttools.cxx
index 5822179e06e0..2305c2d203f4 100644
--- a/test/source/xmltesttools.cxx
+++ b/test/source/xmltesttools.cxx
@@ -405,6 +405,20 @@ void XmlTestTools::registerOOXMLNamespaces(xmlXPathContextPtr& pXmlXpathCtx)
BAD_CAST("http://schemas.microsoft.com/office/drawing/2010/main"));
xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("c"),
BAD_CAST("http://schemas.openxmlformats.org/drawingml/2006/chart"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("x"),
+ BAD_CAST("http://schemas.openxmlformats.org/spreadsheetml/2006/main"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("r"),
+ BAD_CAST("http://schemas.openxmlformats.org/package/2006/relationships"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("xx"),
+ BAD_CAST("urn:schemas-microsoft-com:office:excel"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("xdr"),
+ BAD_CAST("http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("x14"),
+ BAD_CAST("http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("xm"),
+ BAD_CAST("http://schemas.microsoft.com/office/excel/2006/main"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("x12ac"),
+ BAD_CAST("http://schemas.microsoft.com/office/spreadsheetml/2011/1/ac"));
xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("o"),
BAD_CAST("urn:schemas-microsoft-com:office:office"));
xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("w10"),