You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
coze@cb-gene:~/ruby/eeepub/epubcheck-3.0/lcthw$ java -jar ../epubcheck-3.0.jar LearnCTheHardWay.epub
Epubcheck Version 3.0
Validating against EPUB version 2.0
ERROR: LearnCTheHardWay.epub/content.opf(2,120): value of attribute "unique-identifier" is invalid; must be an XML name without colons
my code is something like this :
title='Learn C The Hard Way'author='Zed. A. Shaw'publisher='http://c.learncodethehardway.org'date='2010-05-06'url='http://c.learncodethehardway.org/book/'uid=UUID.generateepub=EeePub.makedotitletitlecreatorauthorpublisherpublisherdatedateidentifieruid,:scheme=>'uid'uiduidfilesdic.map{|el| "#{dir}/#{el[:url]}"}navdic.map{|el| {content: "#{el[:url]}",label: el[:name]}}endepub.save("#{title}.epub")
(I parse the html in between)
seems like toc initializer is using the whole hash for uid where it should only use :value .
The text was updated successfully, but these errors were encountered:
I get dtb:uid like
in toc.ncx
my code is something like this :
(I parse the html in between)
seems like toc initializer is using the whole hash for uid where it should only use :value .
The text was updated successfully, but these errors were encountered: