Skip to content

Commas in certain values fails validation #25

@carlgleisner

Description

@carlgleisner

Hi 👋🏻 Wish I could be more helpful regarding this but a fresh Normal.dotm generated on a sv-SE localised system throws the following errors on validation.

I pasted the CSV of the logs below.

I managed to work around this issue by removing the commas from the fields in question.

I do not expect any fix, just wanted to let you know in case you are interested.

Id,Description,Namespaces,NamespacesDefinitions,XPath,PartUri,ErrorType
"""Sem_AttributeValueDataTypeDetailed""","""The attribute 'http://schemas.openxmlformats.org/wordprocessingml/2006/main:val' has invalid value 'Konfidentiellt, Sidnr, Datum'. The Pattern constraint failed. The expected pattern is ^[^,]*$.""",{},"[
  ""xmlns:w=\""http://schemas.openxmlformats.org/wordprocessingml/2006/main\""""
]","""/w:glossaryDocument[1]/w:docParts[1]/w:docPart[51]/w:docPartPr[1]/w:name[1]""","""/word/glossary/document.xml""","""Schema"""
"""Sem_AttributeValueDataTypeDetailed""","""The attribute 'http://schemas.openxmlformats.org/wordprocessingml/2006/main:val' has invalid value 'Författare, Sidnr, Datum'. The Pattern constraint failed. The expected pattern is ^[^,]*$.""",{},"[
  ""xmlns:w=\""http://schemas.openxmlformats.org/wordprocessingml/2006/main\""""
]","""/w:glossaryDocument[1]/w:docParts[1]/w:docPart[50]/w:docPartPr[1]/w:name[1]""","""/word/glossary/document.xml""","""Schema"""

This is the passage in glossary/Document.xml which causes the issue.

<w:docPartPr>
    <w:name w:val="Konfidentiellt, Sidnr, Datum" />
    <w:style w:val="Sidhuvud/sidfot" />
    <w:category>
        <w:name w:val="Allmänt" />
        <w:gallery w:val="autoTxt" />
    </w:category>
    <w:behaviors>
        <w:behavior w:val="content" />
    </w:behaviors>
    <w:guid w:val="[redacted]" />
</w:docPartPr>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions