View Single Post
Old 06-21-2011, 11:45 AM   #135
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Quote:
Originally Posted by kiwidude View Post
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.
ldolse is offline   Reply With Quote