Clarify handling of empty arguments in xpath function contains#10814
Clarify handling of empty arguments in xpath function contains#10814pijuskri wants to merge 4 commits intomendix:developmentfrom
Conversation
|
Needs team review |
aac06dd to
ce9d797
Compare
.../docs/refguide/modeling/xpath/xpath-constraints/xpath-constraint-functions/xpath-contains.md
Outdated
Show resolved
Hide resolved
.../docs/refguide/modeling/xpath/xpath-constraints/xpath-constraint-functions/xpath-contains.md
Outdated
Show resolved
Hide resolved
|
The same things hold for |
.../docs/refguide/modeling/xpath/xpath-constraints/xpath-constraint-functions/xpath-contains.md
Outdated
Show resolved
Hide resolved
|
|
||
| ### attribute | ||
|
|
||
| `attribute` specifies the attribute to test in. Attribute must be of the **String** type. |
There was a problem hiding this comment.
It doesn't have to be a simple attribute, it can also be a long path ending at an attribute.
There was a problem hiding this comment.
I thought about mentioning that, but the entire xpath constraint documentation never explicitly mentions paths and always refers to attributes. I don't know if this distinction is necessary to highlight.
There was a problem hiding this comment.
@pijuskri
So you are saying that I can specify an attribute by either
[Sales.Customer_Address/Sales.Address[contains(City, 'otterda')]]
or
[Sales.Customer_Address[contains(Sales.Address/City, 'otterda')]]
?
In that case, I think we should add a general point about what we mean by attribute in https://docs.mendix.com/refguide/xpath-constraint-functions/
There was a problem hiding this comment.
That is how i understood it. It would be ideal to clarify this like you mention.,
…ts-with and ends-with
ce9d797 to
1ac875d
Compare
|
Approved by datastorage team. |
No description provided.