Export to GitHub

epubcheck - issue #190

links with query strings shown as errors


Posted on Jun 22, 2012 by Massive Monkey

PROBLEM:

Using 3.0b5 on epub3. If a link within a .xhtml file includes a query string as part of the url, e.g <a href="a.xhtml?x=y">... </a> then an error is shown in validation that the "referenced resource missing in the package" when the actual target of the link (a.xhtml) does exist and is properly included in the manifest. The epub3 spec. says nothing about not using query strings.

METHOD:

  1. include a link of the form <a href="a.xhtml?x=y">... </a> in an xhtml document within the package.
  2. run the validator on the epub file.

RESULT:

The target of the link is shown as an error with the message "referenced resource missing in the package".

EXPECTED:

According to the spec. this should be valid within an xhtml document inside an epub.

PLATFORM:

What version of the product are you using? On what operating system?

ADDITIONAL INFO:

Please provide any additional information below.

Comment #1

Posted on Jun 22, 2012 by Massive Monkey

Sorry, just to emphasise this is epubcheck 3.ob5 on windows XP

Comment #2

Posted on Jul 10, 2012 by Massive Monkey

I have modified XrefChecker to strip query strings from URIs, code attached.

Attachments

Comment #3

Posted on Oct 11, 2012 by Quick Bird

(No comment was entered for this change.)

Comment #4

Posted on Oct 11, 2012 by Quick Bird

This issue was closed by revision r349.

Status: Fixed

Labels:
Type-Defect Milestone-3.0.0