View Single Post
Old 08-21-2010, 03:41 PM   #1
ChrisI
Connoisseur
ChrisI has learned how to read e-booksChrisI has learned how to read e-booksChrisI has learned how to read e-booksChrisI has learned how to read e-booksChrisI has learned how to read e-booksChrisI has learned how to read e-booksChrisI has learned how to read e-books
 
Posts: 55
Karma: 847
Join Date: Sep 2007
Device: Kobo H2O, Libre 2
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?
ChrisI is offline   Reply With Quote