Thanks Bob and Angel for your help - I now see where I was going wrong. I have 
made a simple page which calls setXHTML() and the page validates as HTML5 using 
the W3 validator. That's a file with .html extension. An ePub3 requires the 
extension to be .xhtml. When I save as .xhtml I get the error:

SyntaxError: An invalid or illegal string was specified core.z.js (line 2490)

I experimented with different xhtml/html5 templates (i.e. the DOCTYPE and xmlns 
bits) but without success.

Bob raises two important questions:

>Greg, tell us more about ePub3 and what might be possible here with Jmol.
>How popular is ePub3 at this point?

ePub3 is very new and it's not yet clear how popular it may be. Our current 
primary delivery route is via a Moodle VLE. So that students can study offline, 
we are looking into ePub3 as an alternative format. I have successfully 
included JSmol in our VLE pages and it would be great to have a 
fully-functional ePub3 with working JSmol.

>Question: How would an ePub3 document access the required JavaScript libraries?

Each interactive activity is included as a zip file - you can include JS 
library files alongside your HTML/other files. So, as long as you can have all 
of your files 'locally' and not have to rely on loading files in via http over 
the web, most kinds of interactive activity should work in an ePub3. 

Greg

-- 
The Open University is incorporated by Royal Charter (RC 000391), an exempt 
charity in England & Wales and a charity registered in Scotland (SC 038302).


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to