This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Reproduced in build 070403_30. To reproduce the bug: - open the Expression Builder and add an xpath expression consisting of deliberately not existing elements to the Expression text area, e.g. 'ns:aaa/ns:bbbb'; - press Check Syntax button. XPath is said to be valid.
Actually the XPath is valid in this case from the syntax point of view. And just this check is implemented. I think it's possible to implement a semantics verification in cases like the referenced one. But it's very simple and the expression editor is intended for complex XPath clauses so it looks redundant. The only enhencement I suggest to do is to chenge the validation message to do it less ambiguous.
I chenge the message from XPath is valid to The expression has valid XPath syntax
Verified in build 070418.
entering the expression ns:aaa/ns:bbbb which does not conform to any visible schema in the Expression builder should warn the user that the expression does not match any visible schema in the project and has to be corrected. Changing the string to "The expression has valid XPath syntax" is not enough. Marking this bug as dependent on the bug 113534 for validation of xpath expressions against visible schema.