|
|
#1 |
|
Junior Member
![]() 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>.... …</para>
</infoblock>
</prebook>
Regards |
|
|
|
|
|
#2 |
|
Junior Member
![]() 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? |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,611
Karma: 28549044
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.
|
|
|
|
|
|
#4 | |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Aug 2012
Device: Kindle Fire
|
XML to HTML conversion
Quote:
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 |
|
|
|
|
|
|
#5 |
|
Junior Member
![]() 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.
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 5774804
Join Date: Oct 2011
Location: UK
Device: Kobo (Sage, Aura One, Aura HD, & Touch); reMarkable tablet.
|
I wonder whether anybody can help with this type of conversion. I am trying to read these books by Alice Thornton, which are xml encoded (TEI format, supposedly), on my Kobo devices. I have tried the TEI Garage encoder (note new URL for that system) with no success.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Import XML Feature designed in Calibre? | skdutta | Conversion | 6 | 06-14-2011 09:12 AM |
| Import failed Error:404 when attempting to import from Calibre to Stanza | dvond | Apple Devices | 0 | 05-13-2011 04:00 PM |
| xml epub | yuxi_kelly | ePub | 4 | 05-13-2011 11:52 AM |
| XML files and XSD file to EPUB | janneman | Workshop | 8 | 04-08-2011 06:23 PM |
| Converting XML + XSL to Epub. Is there an easy way to do it? | Rogier | ePub | 4 | 04-22-2009 11:26 AM |