[oXygen-user] epub3 epubcfi support

Oxygen XML Editor Support (Radu Coravu)
Wed Aug 13 09:05:58 CDT 2014


Hi Peter,

Oxygen uses for validating XHTML documents the schemas developed by the 
EPUBCheck project.

The reported error is this one, right?

> E [Jing] value of attribute "href" is invalid; must be a URI

According to the XHTML 5 specification the @href value of the <a> attribute:

> http://www.w3.org/html/wg/drafts/html/CR/links.html#attr-hyperlink-href

  needs to be an URI which would mean that it should have all 
URI-illegal characters escaped like:

> epubcfi(/6/8%5Bchap05ref%5D!/4%5Bbody01%5D,%20/156%5Bp142%5D/1:0,%20/157%5Bp143%5D/1:0)

but I'm not quite sure of this.

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 8/13/2014 4:28 PM, Peter West wrote:
> The EPUB3 sample index at http://carpeindexum.com/idpf/index_sample.xhtml contains the following gem:
>
>    <!-- range tagged with single <a>, using CFI to indicate the range -->
>    <li id="four"><span epub:type="index-term">FourSquare</span>, <a epub:type="index-locator"
>      href="epubcfi(/6/8[chap05ref]!/4[body01], /156[p142]/1:0, /157[p143]/1:0)">142-143</a>,
>      <a epub:type="index-locator" href="...">150</a></li>
>
> Oxygen doesn't like it, but it seems to be kosher according to:
> http://www.idpf.org/epub/linking/cfi/epub-cfi.html
>
> It doesn't look like a trivial fix.  Is support for epubcfi validation in the pipeline?
>
> Peter West
>
> He said to them, "But who do you say that I am?"
>
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>


More information about the oXygen-user mailing list