Interpreting relative references in OPC

MURATA Makoto eb2m-mrt at asahi-net.or.jp
Wed May 16 03:35:05 CEST 2012


Dear colleagues,

If my memory is correct, resolution of relative references within OPC
is an issue.
ODF and EPUB both did reasonably good jobs.

EPUB3 http://idpf.org/epub/30/spec/epub30-ocf.html#sec-container-iri
ODF 1.2 http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part3.html#__RefHeading__752821_826425813

In my understanding, after unzipping OPC, every relative reference
will be broken,
and this has not caused any real problems.  But, in EPUB3, unzipping
do not break
relative references except for those in the META-INF directory, which
is only for packaging.
This is also intentional, since synergy with the Web world and the
e-book world is
highly important for EPUB.  I am not sure about ODF 1.2.

Interestingly, XPS implementations always appear to use absolute-path
references (which
always begin with "/") as references, while OOXML implementations appear to use
relative-path references (which do not begin with "/").


Regards,
Makoto


More information about the sc34wg4 mailing list