1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-10 02:00:24 +08:00

add: xmlns:wp14 in Document

This commit is contained in:
源文雨
2023-02-15 14:10:48 +08:00
parent 9a504d59dc
commit d10c5b0cb3
6 changed files with 15 additions and 10 deletions

View File

@@ -3,9 +3,10 @@ package docxlib
import "encoding/xml"
const (
XMLNS_W = `http://schemas.openxmlformats.org/wordprocessingml/2006/main`
XMLNS_R = `http://schemas.openxmlformats.org/officeDocument/2006/relationships`
XMLNS_WP = `http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing`
XMLNS_W = `http://schemas.openxmlformats.org/wordprocessingml/2006/main`
XMLNS_R = `http://schemas.openxmlformats.org/officeDocument/2006/relationships`
XMLNS_WP = `http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing`
XMLNS_WP14 = `http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing`
)
func getAtt(atts []xml.Attr, name string) string {
@@ -27,5 +28,6 @@ type Document struct {
XMLW string `xml:"xmlns:w,attr"`
XMLR string `xml:"xmlns:r,attr"`
XMLWP string `xml:"xmlns:wp,attr"`
XMLWP14 string `xml:"xmlns:wp14,attr"`
Body *Body
}