Public bug reported: Binary package hint: mozilla-devscripts
Forwarding Debian Bug about xpath expressions fail to properly deal with some namespace variants. IRC logs: <asac> TARGET_VERSION = $(shell xpath -q -e '//em:targetApplication/Description[em:id="$(1)" or @em:id="$(1)"]/em:$(2)/text() | //em:targetApplication/Description[em:id="$(1)" or @em:id="$(1)"]/@em:$(2) | //RDF:descripti...@em:id="$(1)"]/em:$(2)/text() | //RDF:descripti...@em:id="$(1)"]/@em:$(2)' $(3)/install.rdf | sed -e 's/.*"\(.*\)"/\1/') <asac> TARGET_VERSION = $(shell xpath -q -e '//local-name("targetApplication")/local-name("Description")[em:id="$(1)" or @em:id="$(1)"]/em:$(2)/text() <asac> so the right approach is: <asac> //node()[local-name(.) = 'targetApplication'] <asac> so for each occurance of: "em:targetApplication" ... make node()[local-name(.) = 'targetApplication'] <asac> and for each occurence of Description make <asac> node()[local-name(.) = 'Description'] <asac> xpath -q -e "//node()[local-name(.) = 'targetApplication']/node()[local-name(.) = 'Description']" unpack/install.rdf 2>/dev/null ** Affects: mozilla-devscripts (Ubuntu) Importance: Medium Status: Triaged -- xpath expressions fail to properly deal with some namespace variants https://bugs.launchpad.net/bugs/453040 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs