2011-10-03 3 views
2

ePubChecker에서 사용자 정의 네임 스페이스를 사용하는 epub에서 오류가 발생합니다. ePub 3.0에서 맞춤 네임 스페이스를 사용하고 있습니까?ePub 3.0에서 사용자 정의 xml 네임 스페이스를 사용할 수 있습니까?

예제 코드 :

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/1999/xhtml"> 
<html xmlns="http://www.w3.org/TR/xhtml11" xmlns:customns="http://example.com"> 
<head></head> 
<body><customns:customtag></customns:customtag></body> 
</html> 

ERROR : 나는 소니 PRS-650을 시도했습니다

/Untitled.epub/OPS/page0.html(5,27): element "customns:customtag" not allowed here; expected the element end-tag, text or element "a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "br", "button", "canvas", "cite", "code", "command", "datalist", "del", "details", "dfn", "div", "dl", "em", "embed", "fieldset", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "map", "mark", "menu", "meter", "nav", "ns1:switch", "ns1:trigger", "ns2:math", "ns3:svg", "object", "ol", "output", "p", "pre", "progress", "q", "ruby", "s", "samp", "script", "section", "select", "small", "span", "strong", "style", "sub", "sup", "table", "textarea", "time", "u", "ul", "var", "video" or "wbr" (with xmlns:ns1="http://www.idpf.org/2007/ops" xmlns:ns2="http://www.w3.org/1998/Math/MathML" xmlns:ns3="http://www.w3.org/2000/svg")

+1

당신은 할 수 있지만 표준이 아니므로 다양한 독자들이 귀하의 콘텐츠를 어떻게 표시 (또는 무시)할지 선택하는 방법을 알고 있습니다. – Freney

답변

0

. 기대하지는 않았지만 효과가있었습니다. 독자는 여는 태그와 닫는 태그 사이에 텍스트를 표시했습니다.

지금까지 나는 Epub 2.0.1 supports namespacesEpub 3.0 draft does not remove this feature을 확인했습니다. XHTML은 XML이므로 괜찮을 수도 있지만 절대적으로 필요하지 않으면이 기능을 사용하지 않을 것입니다. 어쩌면 다른 장치의 펌웨어가 잘 테스트되지 않고 책을 보여주지 않을 것입니다.

관련 문제