summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-06-07 20:50:34 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-06-07 22:57:57 +0200
commit2b7bfe009ac35cb5fda9ca14404fea924acb54fa (patch)
treebffd34f916f20f610a9b8b912029a989a34ff35b /test
parent039180f8255b6356cb89b1777e4e53323541898d (diff)
sd: use registerOOXMLNamespaces and registerODFNamespaces
While at it, fix incorrect r:Relationships with rels:Relationships Change-Id: Ia8e6556b0e7d3839e00936626627471a7a276071 Change-Id: I77f950dabd4d2131256673e517625d31ade9aa76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116800 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'test')
-rw-r--r--test/source/xmltesttools.cxx17
1 files changed, 16 insertions, 1 deletions
diff --git a/test/source/xmltesttools.cxx b/test/source/xmltesttools.cxx
index 2305c2d203f4..10a304fac745 100644
--- a/test/source/xmltesttools.cxx
+++ b/test/source/xmltesttools.cxx
@@ -351,6 +351,15 @@ void XmlTestTools::registerODFNamespaces(xmlXPathContextPtr& pXmlXpathCtx)
BAD_CAST("urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0"));
xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("css3t"),
BAD_CAST("http://www.w3.org/TR/css3-text/"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("anim"),
+ BAD_CAST("urn:oasis:names:tc:opendocument:xmlns:animation:1.0"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("smil"),
+ BAD_CAST("urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("presentation"),
+ BAD_CAST("urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"));
+ // user-defined
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("foo"),
+ BAD_CAST("http://example.com/"));
}
void XmlTestTools::registerOOXMLNamespaces(xmlXPathContextPtr& pXmlXpathCtx)
@@ -408,7 +417,7 @@ void XmlTestTools::registerOOXMLNamespaces(xmlXPathContextPtr& pXmlXpathCtx)
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"));
+ BAD_CAST("http://schemas.openxmlformats.org/officeDocument/2006/relationships"));
xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("xx"),
BAD_CAST("urn:schemas-microsoft-com:office:excel"));
xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("xdr"),
@@ -423,6 +432,12 @@ void XmlTestTools::registerOOXMLNamespaces(xmlXPathContextPtr& pXmlXpathCtx)
BAD_CAST("urn:schemas-microsoft-com:office:office"));
xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("w10"),
BAD_CAST("urn:schemas-microsoft-com:office:word"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("p"),
+ BAD_CAST("http://schemas.openxmlformats.org/presentationml/2006/main"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("p14"),
+ BAD_CAST("http://schemas.microsoft.com/office/powerpoint/2010/main"));
+ xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("dgm"),
+ BAD_CAST("http://schemas.openxmlformats.org/drawingml/2006/diagram"));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */