Quote:
Originally Posted by awx
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.