Quote:
Originally Posted by chaot
I am already one step ahead. Testing the minimum! What you refer to was meant as an example. Anyway!
Assuming we got a stylesheet (and want to have it reflected in our book). Because we can have a stylesheet not appearing in the head section, and therefore unreflected in the book (I test that).
Then this is the minimum and function!
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
|
You left out
Code:
<meta content="http://www.w3.org/1999/xhtml; charset=utf-8" http-equiv="Content-Type"/>
I have seen plenty of ePub where the code is not going to be rendered correctly because it's the program doing the rendering is not forcing UTF-8. The meta content is needed to make sure the program renders the code as UTF-8. It's even sometimes needed for a Kindle. It is mostly quotes and apostrophes that won't be rendered correctly.