Docx文件保存后配置文件会添加自定义属性

After the docx file is saved, some custom attributes will be added to the word/settings.xml file, for example: <w:trackRevisions w:val=“true” />

This is the file content before saving. I unzipped it and checked it.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh w16du"><w:zoom w:percent="100"/><w:bordersDoNotSurroundHeader/><w:bordersDoNotSurroundFooter/><w:defaultTabStop w:val="420"/><w:drawingGridVerticalSpacing w:val="156"/><w:noPunctuationKerning/><w:characterSpacingControl w:val="compressPunctuation"/><w:compat><w:spaceForUL/><w:balanceSingleByteDoubleByteWidth/><w:doNotLeaveBackslashAlone/><w:ulTrailSpace/><w:doNotExpandShiftReturn/><w:adjustLineHeightInTable/><w:doNotWrapTextWithPunct/><w:doNotUseEastAsianBreakRules/><w:useFELayout/><w:doNotUseIndentAsNumberingTabStop/><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="14"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/></w:compat><w:docVars><w:docVar w:name="commondata" w:val="eyJoZGlkIjoiZTA0ZmNjNWY2NzU4YTA0ZGZlNDc2ZTM0NGQ1NTc4MDkifQ=="/></w:docVars><w:rsids><w:rsidRoot w:val="00172A27"/><w:rsid w:val="00172A27"/><w:rsid w:val="005D2519"/><w:rsid w:val="005F42AE"/><w:rsid w:val="0094711A"/><w:rsid w:val="00AA4AF8"/><w:rsid w:val="00CB1D30"/><w:rsid w:val="00D17B33"/><w:rsid w:val="00D34073"/><w:rsid w:val="00D42EA5"/><w:rsid w:val="00E77EC9"/><w:rsid w:val="1A441016"/><w:rsid w:val="20014B53"/><w:rsid w:val="2A9621D1"/><w:rsid w:val="392456E2"/><w:rsid w:val="43A0005B"/><w:rsid w:val="701204B5"/><w:rsid w:val="70CD1A6A"/><w:rsid w:val="729476C8"/><w:rsid w:val="77EA28FE"/><w:rsid w:val="78B673FD"/></w:rsids><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="0"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-US" w:eastAsia="zh-CN"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:doNotIncludeSubdocsInStats/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026"/><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/><w14:docId w14:val="44D4F6BE"/><w15:docId w15:val="{93D43995-0053-4C9B-AA88-ECA3D530E49C}"/></w:settings>

This is the file content after saving.

<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15"><w:zoom w:percent="100"/><w:trackRevisions w:val="false" /><w:documentProtection /><w:defaultTabStop w:val="420" /><w:characterSpacingControl w:val="doNotCompress"/><w:footnotePr><w:pos w:val="pageBottom" /><w:numFmt w:val="decimal" /><w:numStart w:val="1" /><w:numRestart w:val="continuous" /><w:footnote  w:id="-1"/><w:footnote  w:id="0"/></w:footnotePr><w:endnotePr><w:pos w:val="docEnd" /><w:numFmt w:val="lowerRoman" /><w:numStart w:val="1" /><w:numRestart w:val="continuous" /><w:endnote  w:id="-1"/><w:endnote  w:id="0"/></w:endnotePr><w:compat><w:balanceSingleByteDoubleByteWidth w:val="true" /><w:ulTrailSpace w:val="true" /><w:doNotExpandShiftReturn w:val="true" /><w:useFELayout w:val="true" /><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="14" /><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1" /><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1" /><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1" /></w:compat><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="false"/><m:dispDef m:val="true"/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-US" w:eastAsia="zh-CN" /><w:clrSchemeMapping  w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026" strokecolor="000000" ></o:shapedefaults><o:shapelayout v:ext="edit" ><o:idmap v:ext="edit" data="1" /></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="." /><w:listSeparator w:val="," /></w:settings>

Generally, there will be no problem, but some plug-ins used in our backend service do not support these custom attributes. Can I use some configuration to prevent it from generating these attribute tags?

Hello @Juhun

What’s the version of Document Server used? Do you have Track Changes mode enabled in the moment of saving the file?

Are you referring to editorConfig. customization. review. trackChanges?
I did not configure it, and just tested that modifying it to true or false would result in the same situation,
My service is deployed in Docker, and the image version is DocumentServer: 8.1.3.2
Thank you for taking the time to pay attention to my question:)

No, I wandered if Track Changes in enabled somehow in the editor when this happens.

BTW, newer version is available, I recommend updating and checking out the situation again.

Maybe, I will try to upgrade the image version later :sob:

1 Like

Looking forward to your feedback.