Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Svg Epubcheck:“您必须遵守《全国人大常委会关于维护互联网安全的决定》及中华人民共和国其他有关法律法规。”;分析文件时出错';“元素”;动画化;这里不允许……”;_Svg_Epub_Epub3 - Fatal编程技术网

Svg Epubcheck:“您必须遵守《全国人大常委会关于维护互联网安全的决定》及中华人民共和国其他有关法律法规。”;分析文件时出错';“元素”;动画化;这里不允许……”;

Svg Epubcheck:“您必须遵守《全国人大常委会关于维护互联网安全的决定》及中华人民共和国其他有关法律法规。”;分析文件时出错';“元素”;动画化;这里不允许……”;,svg,epub,epub3,Svg,Epub,Epub3,我从v3 epub上的epubcheck 3.0.1中得到以下错误 Error while parsing file 'element "animate" not allowed here; expected the element end-tag or element "desc", "metadata" or "title"'. 使用以下标记(此处大量删节) page0001.xhtml: <?xml version="1.0"?> <!DOCTYPE html>

我从v3 epub上的epubcheck 3.0.1中得到以下错误

Error while parsing file 'element "animate" not allowed here; expected the element end-tag or element "desc", "metadata" or "title"'.
使用以下标记(此处大量删节)

page0001.xhtml:

<?xml version="1.0"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
    <head>
        <title>Title</title>
    </head>
    <body>
        <div class="author-signature">
            <svg version="1.1" id="self-writing-author-signature" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1918.481px" height="277.577px" viewBox="0 281.535 1918.481 277.577" enable-background="new 0 281.535 1918.481 277.577" xml:space="preserve">
                <path id="sig-by" fill="none" stroke-dasharray="1057.016845703125,1057.016845703125" stroke="none" stroke-width="20" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M263.75,364.167c-7.011,19.632-21.317,39.133-42.25,45l-41.5,30c-3.824,20.125-25.998,31.36-16.174,54.457 c8.2,19.276,25.843,29.402,46.735,24.013c44.587-11.503,34.35-74.295,7.939-101.47l-4.25-45 c0.039,12.186,15.013,38.818,0.276,46.053c-10.267,5.041-27.781,27.543-40.072,18.511c-34.203-25.136-10.987-56.058-18.03-60.148 c-5.601-3.254-14.229-5.121-27.424-4.915l9.5,22.5c6.385,10.05-61.562,77.319-83.436,19.976c-11.739-30.774-5.86-78.666,22.21-98.09 c51.94-35.939,55.01,19.861,37.701,52.102C99.354,396.259,37.558,402.735,10,402.167">
                    <animate attributeName="stroke" from="none" to="#000000" begin="0" dur="100ms" fill="freeze"/>
                    <animate id="byAnim" attributeName="stroke-dashoffset" from="0" to="0" dur="1s" begin="0" fill="freeze" keySplines="0 0.5 0.5 1" calcMode="linear" values="-1057.016845703125;0"/>
                </path>
            </svg>
        </div>
    </body>
</html>

标题
它基本上是SVG动画的一个片段,显示了作者的签名书写本身

从我所读到的内容,以及我使用在线SVG标记验证进行的测试来看,SVG很好。可以将元素作为路径元素的子元素设置动画。我对此感到不安,因为从我所读到的内容来看,epubcheck是对在数字商店上发布的一个严峻考验,但我正在努力寻找一种绕过这个错误的方法,而不是指望数字商店的恩典来忽略这一点,不管怎样都要储存它


有人能帮上忙吗?

EPUB 3不允许SVG动画元素,请参阅:


如果有一个稍微令人伤心的消息,谢谢你。你能解释一下为什么这个元素被明确禁止吗?规范没有说明原因。我不在EPUB规范作者的“内部”圈子,所以我不确定答案是什么。通过谷歌搜索我发现:如果您需要更多详细信息,可以在IDPF论坛上发布: