Quote:
Originally Posted by KevinH
Then you will lose the xml:lang attribute by doing so. Are all divs with that spanish language attribute the ones you want to be converted?
|
Yes, they are. It's OK to remove them. The epub is in Spanish, so the xml:lang attributes in those divs are unnecessary because the head section already has the appropiate tag:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
Quote:
Are there other divs in the file you do not want to be converted?
|
Yes, there are other divs which will remain as div.
My exact trigger must be only the outer div with an extra/unnecessary xml:lang attribute, which also has an inner plain div.
Quote:
None of the metadata or other fields matter at all.
|
OK
Quote:
A regex to find all nested divs and capture the inner div is possible as is a function to determine what the replacement is to be made but without knowing if it it is safe to do that for any set of nested divs in the document, it is all meaningless.
|
OK. I hope I explain it clearer.
Thanks again!