View Single Post
Old 06-05-2008, 07:32 PM   #6
Jon Noring
Member
Jon Noring doesn't litterJon Noring doesn't litter
 
Posts: 16
Karma: 112
Join Date: Oct 2006
Quote:
Originally Posted by sfan View Post
I just did a simple experiment with just XML files.

In opf file, I defined:
<item id="titlepage" href="title.xml" media-type="application/xhtml+xml"/>
<item id="note" href="note.xml" media-type="application/xhtml+xml"/>
<item id="kml" href="kml_sample.kml" media-type="application/google+kml" fallback="titlepage"/>

In note.xml, I added a link like this:
<p><a href="kml_sample.kml">KML</a></p>

From my understanding, if fallback is supported, when the KML link is clicked, reader app should jump to title.xml. DE displayed KML as a link, but when I clicked, nothing happened.
It is important to refer to the OPF Specification which defines the mechanism to assign fallbacks. You will need to add, for example, the 'fallback' attribute, and do it as specified.

Good luck!
Jon Noring is offline   Reply With Quote