Why is the wordConfiguration.yml file not used when parsing the document.xml subfile in the docx file?

Issue #1357 resolved
zero created an issue

I want to exclude the attribute names of text boxes and pictures through configuration

Original configuration file:

   'pic:cnvpr':
      ruleTypes: [ATTRIBUTES_ONLY]
      translatableAttributes: [ name ]
      elementType: image


   'wp:docpr':
     ruleTypes: [ATTRIBUTES_ONLY]
     translatableAttributes: [ name ]

I changed the configuration to:

   'pic:cnvpr':
     ruleTypes: [ EXCLUDE ]


   'wp:docpr':
     ruleTypes: [ EXCLUDE ]

I found that the configuration did not take effect. Then I read the source code and found that ContentFilter was not used when parsing the document.xml file. I was very confused.

Comments (4)

  1. Log in to comment