I'm playing around with epubs at the moment, and I'm trying to make a
simple reader for fun.
I'm using the content.opf and pulling various info, but I'm having issues
with the metadata for author and such, because its named <dc:creator
opf:role="aut">Donna Fernstrom</dc:creator>
<cfset XMLFile = ExpandPath("book/OEBPS/content.opf") />
<cfset MyXMLDoc = xmlParse(XMLFile) />
<cfset BookNodes = XmlSearch(MyXMLDoc,'/:package/:spine/:itemref') />
With a simple loop I'm using that to pull the pages and create links, but
it's throwing errors when I try to use a similar code on the creator one,
because of the : in the name..
Needless to say I'm not that used to working with XML and it's the first
time I'm working with XPath.
Are there any XML/XPath gurus around to save my sanity? XD
Marcus
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en