Debian Codegraph @

debian/patches/fix-xpathcontext

raw
1 fix a strange failure during testing where a call to registerNs
2 gives an error about cannot *unregister*.
3
4 Thanks to Don Armstrong for providing the idea
5 ---
6 lib/Biber/Input/file/biblatexml.pm | 3 ++-
7 1 file changed, 2 insertions(+), 1 deletion(-)
8
9 --- biber.orig/lib/Biber/Input/file/biblatexml.pm
10 +++ biber/lib/Biber/Input/file/biblatexml.pm
11 @@ -122,7 +122,8 @@ sub extract_entries {
12 $xml = NFD($xml);# Unicode NFD boundary
13 my $bltxml = XML::LibXML->load_xml(string => $xml);
14 my $xpc = XML::LibXML::XPathContext->new($bltxml);
15 - $xpc->registerNs($NS, $BIBLATEXML_NAMESPACE_URI);
16 + my $tmp = $BIBLATEXML_NAMESPACE_URI;
17 + $xpc->registerNs($NS, $tmp);
18
19 if ($section->is_allkeys) {
20 if ($logger->is_debug()) {# performance tune