| 
			
			 | 
		#1 | 
| 
			
			
			
			 OS/2 forever 
			
			![]() Posts: 12 
				Karma: 10 
				Join Date: Aug 2009 
				Location: Scottsdale, AZ 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Validation error
			 
			
			
			Using epubcheck 1.0.5 as provided at: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	http://www.threepress.org/document/epub-validate/ I get the following error for all FileName.epub: # ERROR: FileName.epub/titlepage.xhtml(13): bad value for attribute "preserveAspectRatio" If I edit the line in titlepage.xhtml file which reads: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 323 500" preserveAspectRatio="none"> and remove the part that reads: viewBox="0 0 323 500" preserveAspectRatio="none" or just remove the: preserveAspectRatio="none" I am able to eliminate the error. Can anyone tell me what the effect of this is edit is? Is there a way to stop Calibre from writing the preserveAspectRatio="none"?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			this is a bug in epubcheck. If you want to work around it, turn on the preserve aspect ration setting in the epub output conversion settings.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 OS/2 forever 
			
			![]() Posts: 12 
				Karma: 10 
				Join Date: Aug 2009 
				Location: Scottsdale, AZ 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks Kovid, you've done a great job with Calibre.  
		
	
		
		
		
		
		
		
		
		
		
		
	
	Is there any way to get Calibre to just output YYYY-MM-DD without the timestamp to avoid the erroneous error epubcheck reports: ERROR ... .epub/content.opf(12): date value '2010-06-09 00:00:00-04:00' is not valid, YYYY[-MM[-DD]] expected  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			use the epub-fix command that comes with calibre
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 23 
				Karma: 10 
				Join Date: Aug 2010 
				
				
				
				Device: iPad 
				
				
				 | 
	
	
	
		
		
			
			 
				
				epub-fix
			 
			 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | 
| 
			
			
			
			 US Navy, Retired 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897 
				Karma: 13806776 
				Join Date: Feb 2009 
				Location: North Carolina 
				
				
				Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Epub fix is a command line tool, read up on it here.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 The one and only 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,302 
				Karma: 535819 
				Join Date: Oct 2008 
				Location: Berlin, Germany 
				
				
				Device: yup! 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Is there any possibility to use/run epub fix in the GUI and not from the command line? Which gets quite tedious if you've got to fix dozens of files ...
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130 
				Karma: 91256 
				Join Date: Feb 2008 
				Location: Germany 
				
				
				Device: Cybook Gen3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You can write a shell script or a batch file, depending on your OS, to automate that. Look for documentation on using the for- loop in your OS' CLI.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 The one and only 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,302 
				Karma: 535819 
				Join Date: Oct 2008 
				Location: Berlin, Germany 
				
				
				Device: yup! 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Sorry, usually I write novels, but not batch files.  
		
	
		
		
		
		
		
		
		
		
		
		
	
	 
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130 
				Karma: 91256 
				Join Date: Feb 2008 
				Location: Germany 
				
				
				Device: Cybook Gen3 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130 
				Karma: 91256 
				Join Date: Feb 2008 
				Location: Germany 
				
				
				Device: Cybook Gen3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I'll post this regardless of your answer for future reference: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	On windows, paste this into a new text file: Code: 
	@echo off for /r . %%f in (*.epub) do <command> This will recurse through all subdirectories and run the command on all epubs it finds. If you only want to check/fix the ones in the current directory, use this instead: Code: 
	@echo off for %%f in (*.epub) do <command>  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| What's this validation error and how to fix it. | Adjust | ePub | 9 | 06-28-2011 11:45 PM | 
| epub validation error | sassanik | Sigil | 19 | 12-08-2010 06:46 AM | 
| Error during validation | macdafydd | ePub | 19 | 12-01-2010 07:07 PM | 
| ePub validation error | sk19.gupta | Introduce Yourself | 6 | 10-19-2010 11:53 PM | 
| Validation error new with Calibre 0.7.6 | JrBashi | Calibre | 7 | 06-28-2010 10:56 PM |