Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-05-2012, 04:24 AM   #1
MacLeod_
Junior Member
MacLeod_ began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2012
Device: Acer Lumiread 600
XML Import in to calibre (and to epub)

Hi,
i have an xml structure and calibre don't recognize the structure.

Example:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="pbdefault.xsl" type="text/xsl"?>
<!DOCTYPE prebook SYSTEM "prEntities.dtd">
<prebook version="3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="prebook.xsd">
  <bookinfo>
    <title>...</title>
    <coverpic>....</coverpic>
    <author>
      <firstname>...</firstname>
      <lastname>..</lastname>
    </author>
    <genre>Mystery</genre>
    <language>de</language>
    <publisher>...</publisher>
    <releasedate>09.11.2010</releasedate>
    <series>...</series>
    <seriesnumber>...</seriesnumber>
    <releaseinfo>v1.0</releaseinfo>
  </bookinfo>
  <chapter title="">
    <subtitle>....</subtitle>
    <para>....... <qs/>...<qe/></para>
  </chapter>
  <chapter title="">
    <para><I>.....</I></para>
    .....
  </chapter>
  <chapter title="*">
    <subtitle>....</subtitle>
    <para>...</para>
    
  </chapter>
  
  <infoblock title="...." type="preview">
    <subtitle>....</subtitle>
    <subtitle>....</subtitle>
    <para>.... &hellip;</para>
  </infoblock>
</prebook>
can anyone help please?

Regards
MacLeod_ is offline   Reply With Quote
Old 08-06-2012, 12:16 PM   #2
MacLeod_
Junior Member
MacLeod_ began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2012
Device: Acer Lumiread 600
Ok, i found the missing style files: pbdefault.xsl, prebook.xsd + prEntities.dtd.
But calibre don't like me
Any suggestions?
MacLeod_ is offline   Reply With Quote
Advert
Old 08-07-2012, 12:02 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,200
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You cannot convert an arbitrary XML format using calibre. You first need to convert it to html and then calibre will convert that html to an ebook format.
kovidgoyal is offline   Reply With Quote
Old 08-07-2012, 02:32 PM   #4
princessnDragon
Junior Member
princessnDragon began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2012
Device: Kindle Fire
XML to HTML conversion

Quote:
Originally Posted by MacLeod_ View Post
Hi,
i have an xml structure and calibre don't recognize the structure.

can anyone help please?
In my experience an xml to HTML conversion is not always a straight forward operation. HTML is based on xml but the former does not normally contain HTML markup.

I've converted plenty of xml docs to html. I can take a look at yours if you like and let you know what I think. my email: princessndragon ~~at~~ gmail.

--------------------------
P&D
princessnDragon is offline   Reply With Quote
Old 08-10-2013, 10:42 PM   #5
neilday
Junior Member
neilday began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2011
Device: sony prs 650, Boox C67ml, KindlePW3
If you want a quick way to convert various types of XML files to epub (or a wide range of other formats) visit http://www.tei-c.org/oxgarage/#. I converted E A Abbott's Shakespearean Grammar (downloaded from http://www.perseus.tufts.edu/) with a couple of clicks after selecting "TEI P4 XML Document" as the input format. Cheers Neil.
neilday is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import XML Feature designed in Calibre? skdutta Conversion 6 06-14-2011 08:12 AM
Import failed Error:404 when attempting to import from Calibre to Stanza dvond Apple Devices 0 05-13-2011 03:00 PM
xml epub yuxi_kelly ePub 4 05-13-2011 10:52 AM
XML files and XSD file to EPUB janneman Workshop 8 04-08-2011 05:23 PM
Converting XML + XSL to Epub. Is there an easy way to do it? Rogier ePub 4 04-22-2009 10:26 AM


All times are GMT -4. The time now is 04:42 PM.


MobileRead.com is a privately owned, operated and funded community.