]> source.dussan.org Git - poi.git/commitdiff
reuse code
authorPJ Fanning <fanningpj@apache.org>
Sun, 28 Aug 2022 16:22:32 +0000 (16:22 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sun, 28 Aug 2022 16:22:32 +0000 (16:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903741 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFBuiltinTableStyle.java

index a9d183fe93c792ffded036fdc3a602a5c96da46f..347f1895ebe959c1ee3a7441182ec492ecc4d573 100644 (file)
@@ -41,6 +41,8 @@ import org.w3c.dom.Element;
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
 
+import static org.apache.poi.xssf.usermodel.XSSFRelation.NS_SPREADSHEETML;
+
 /**
  * Table style names defined in the OOXML spec.
  * The actual styling is defined in presetTableStyles.xml
@@ -424,7 +426,7 @@ public enum XSSFBuiltinTableStyle {
         dxfsNode.insertBefore(dxfsNode.getOwnerDocument().createElement("dxf"), dxfsNode.getFirstChild());
 
         return "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n" +
-            "<styleSheet xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" " +
+            "<styleSheet xmlns=\"" + NS_SPREADSHEETML + "\" " +
             "xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\" " +
             "xmlns:x14ac=\"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac\" " +
             "xmlns:x16r2=\"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main\" " +