Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6956 closed defect (fixed)

GMLAS: false positive warning in validation mode for ignored optional attributes

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.2.2
Component: OGR_SF Version: unspecified
Severity: normal Keywords: gmlas
Cc:

Description

With VALIDATION=YES open option, a document that uses a schema with an attribute that has use="optional" and a default value, and whose XPath is set in the IgnoredXPaths of the configuration file will report a warning.

Typically the case with swe:Quantity/@optional

Warning 1: Attribute with xpath=gwml2w:GW_GeologyLogCoverage/gwml2w:element/gwml2w:LogValue/gwml2w:fromDepth/swe:Quantity/@optional found in document but ignored according to configuration

Change History (2)

comment:1 by Even Rouault, 7 years ago

Resolution: fixed
Status: assignedclosed

In 39508:

GMLAS: avoid false-positive warning about attribute found in document but ignored according to configuration, when the attribute is actually not present in the document but has a default value (fixes #6956)

comment:2 by Even Rouault, 7 years ago

In 39509:

GMLAS: avoid false-positive warning about attribute found in document but ignored according to configuration, when the attribute is actually not present in the document but has a default value (fixes #6956)

Note: See TracTickets for help on using tickets.