Namespace declaration
I have an existing epub with the following code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg xmlns:xlink="http://www.w3.org/1999/xlink">
and later in the body:
<svg:svg height="100%" ...>
</svg:svg>
When I open the file in Sigil, the entire svg tag gets automatically deleted.
If I change the code to:
<html xmlns="http://www.w3.org/1999/xhtml">
and later in the body:
<svg xmlns="http://www.w3.org/2000/svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" ...>
</svg>
Sigil has no problem and the image is displayed.
Forgive my ignorance, but I figured this out from scraps of other people's code, without really understanding what I am doing. Is this an issue with Sigil that I should report, or is the original epub invalid?
|