View Single Post
Old 04-28-2010, 08:54 PM   #78
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,872
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by awx View Post
In order to facilitate importing an entire book stored inside a single Xhtml file while maintaining it's structure, a specification for the use of divs to define chapters/parts/cover-pages was introduced.

By following this specification, a book stored as a single file will then be split into multiple "document" objects, which would be rendered as multiple Xhtml files in an ePub.
Why define a specification at all? Make it flexible enough to handle an arbitrary structure, via XPath. See how calibre does it for example.
kovidgoyal is offline   Reply With Quote