When a path expression includes element content and attribute content, then the SQL generated needs to search for attribute nodetypes with parent nodenames equal to the path expression element content. However, when only searching for attribute content (such as just packageId), then the parent sub-select needs to be omitted. This patch omits the parent sub-select when the pathexpr starts with '', './', or '../'.
When a path expression includes element content and attribute content, then
the SQL generated needs to search for attribute nodetypes with parent
nodenames equal to the path expression element content. However, when
only searching for attribute content (such as just
packageId), then
', './the parent sub-select needs to be omitted. This patch omits the parent
sub-select when the pathexpr starts with '
', or '../
'.This is a partial bug fix to:
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2052