https://bugzilla.redhat.com/show_bug.cgi?id=1175281
Mikolaj Izdebski <mizdebsk(a)redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |Documentation
--- Comment #5 from Mikolaj Izdebski <mizdebsk(a)redhat.com> ---
(In reply to Mattias Ellert from comment #4)
There is nothing in the documentation of %pom_xpath_replace that
suggests
that it is not supposed to be used to replace text nodes. "man
pom_xpath_replace" says:
"pom_xpath_replace - replace XML node from XML file with given code"
A text node is an XML node so the description fits the use case. Reading
further in the man page there is nothing that says that this is not the
preferred macro for replacing text nodes.
I agree with this reasoning. From documentation it seems like pom_xpath_replace
can work on any XPath node, but in fact it was never intended to work on
non-element nodes.
This is a bug in documentation. When manpages and other documentation refer to
"node", in most cases it should be read "XPath element node" or
"XML element".
I'll fix this when I have time.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=uzreoLZi4B&a=cc_unsubscribe