From 648ae8838f35f45e57b9a41f41f30a3b6ade3037 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 16 Apr 2014 16:10:57 +0200 Subject: Fix bug 693580 by skipping xml tag namespace prefixes. fts_5904.xps and fts_5905.xps use namespace prefixes. Work around that by ignoring the namespace prefix for tag names. A more robust solution would be to expand or record the tag and attribute namespaces in the fz_xml node structure, but that's a overkill for our current needs. --- source/xps/xps-doc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/xps/xps-doc.c') diff --git a/source/xps/xps-doc.c b/source/xps/xps-doc.c index af5bfe5a..5aa2604c 100644 --- a/source/xps/xps-doc.c +++ b/source/xps/xps-doc.c @@ -453,7 +453,7 @@ xps_load_fixed_page(xps_document *doc, xps_page *page) if (!root) fz_throw(doc->ctx, FZ_ERROR_GENERIC, "FixedPage missing root element"); - if (!strcmp(fz_xml_tag(root), "mc:AlternateContent")) + if (!strcmp(fz_xml_tag(root), "AlternateContent")) { fz_xml *node = xps_lookup_alternate_content(root); if (!node) -- cgit v1.2.3