Quote:
Originally Posted by kiwidude
EDIT: with regards to the xhtml files. I could be completely wrong here, but I would be reluctant to go down the xpath route, as surely that will mean re-writing the xhtml files using the xpath tostring() which means you are at the mercy of the content being reformatted, encoding issues etc?
|
I'm not sure - it could certainly be done by string manipulation just grabbing everything between the <style></style> tags if that was a concern. I just figured xpath should be safe because by definition epub has to contain valid xhtml. Encoding shouldn't be a problem, epub spec also requires UTF-8. Reformatting might be a valid concern though - not sure any tidying happens with the tostring() function.