<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>epubBlog &#187; XSLT</title>
	<atom:link href="http://blog.epubbooks.com/tag/xslt/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.epubbooks.com</link>
	<description>epubBlog: EPUB eBook Help &#38; Resources</description>
	<lastBuildDate>Tue, 15 May 2012 08:49:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>ePub Books Project Update &#8211; Still Alive and Kicking!</title>
		<link>http://blog.epubbooks.com/393/epub-books-project-update-alive-and-kicking</link>
		<comments>http://blog.epubbooks.com/393/epub-books-project-update-alive-and-kicking#comments</comments>
		<pubDate>Mon, 09 Feb 2009 20:46:06 +0000</pubDate>
		<dc:creator>Mike Cook</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PG]]></category>
		<category><![CDATA[TEI]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://www.epubbooks.com/blog/?p=393</guid>
		<description><![CDATA[Over the last few weeks several people have emailed asking if epubBooks.com has been abandoned &#8211; the answer is a resounding No! Okay, I know I&#8217;ve not been very active recently so please accept my apologies for that. The reason for such limited activity is that I am working very hard on developing the new [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Over the last few weeks several people have emailed asking if <a href="http://www.epubbooks.com">epubBooks.com</a> has been abandoned &#8211; the answer is a resounding No! Okay, I know I&#8217;ve not been very active recently so please accept my apologies for that.</p>
<p>The reason for such limited activity is that I am working very hard on developing the new site for epubbooks.com &#8211; yes, the blog and current resources will still be accessible. The new site will allow you to download all kinds of different EPUB books, including many from the Project Gutenberg archives.</p>
<p>If you don&#8217;t know what my <a title="ePub Books Project outline" href="/161/the-epub-books-project-part-1-an-introduction">ePub Books Project</a> is, here is a short summary.</p>
<p>The project was started to provide free downloads of nicely formatted EPUB files, the majority of which will be taken from the Project Gutenberg archives. These will not just be plain TEXT files enclosed in an EPUB container, but fully converted to XML (of a TEI flavour) which are themselves converted using XSLT into professional quality EPUB files. Here are some of the features;</p>
<ul>
<li>Properly formatted and displayed Chapter Titles/Subtitles.</li>
<li>Footnotes which are Linkable (forward and backward) for instant access</li>
<li>Books with Illustrations will also be available.</li>
<li>Text Formatting (italics, etc.)</li>
<li>Nice indents for block quotes, letters of correspondence, epigraphs, etc.</li>
<li>&#8230;and many more features</li>
</ul>
<p>The new web application is the biggest project I&#8217;ve developed to date and so is naturally a challenge to my programming skills, which is why it&#8217;s taking some time to complete, however things are going very well.</p>
<p>The basic skeleton of the site up and running and I am now working on programming for usability. Of course it&#8217;s these less obvious items which are some of the hardest things to programme, so at this time can&#8217;t give an accurate launch date. Rest assured it will be sooner rather than later.</p>
<p>Thanks for your patience and understanding and do keep checking back regularly for any new updates.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.epubbooks.com/393/epub-books-project-update-alive-and-kicking/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>epubBooks Project Part 3: ePub conversion and epubBooks.com development</title>
		<link>http://blog.epubbooks.com/180/epubbooks-project-part3-conversion-and-development</link>
		<comments>http://blog.epubbooks.com/180/epubbooks-project-part3-conversion-and-development#comments</comments>
		<pubDate>Tue, 16 Sep 2008 18:46:40 +0000</pubDate>
		<dc:creator>Mike Cook</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[TEI]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://www.epubbooks.com/blog/?p=180</guid>
		<description><![CDATA[In October 2007 the IDPF elevated OPS 2.0 to an official standard and it was from this point I realised that we might well see the ePub format adopted worldwide as an eBook standard. Planning started on how I would go about converting my TEI eBooks to the ePub format. After plenty of research I [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>In October 2007 the IDPF elevated OPS 2.0 to an official standard and it was from this point I realised that we might well see the ePub format adopted worldwide as an eBook standard.</p>
<p>Planning started on how I would go about converting my TEI eBooks to the ePub format. After plenty of research I decided the best solution would be to utilise XSLT.</p>
<p>Okay, so I’d never actually used XSLT before, but how hard could it be?</p>
<h4>TEI to XTHML Conversion using XSLT</h4>
<p>In June 2008 I set to work on teaching myself this new language, XSLT, getting thoroughly confused in the process. So after a few weeks I decided I needed help and while on a trip to London, I popped into Waterstones and bought the book <a href="http://www.epubbooks.com/links/post180/amazon/XSLT-XPath-Programmers-Reference-Programmer" rel="nofollow" target="_blank">XSLT 2.0 and XPath 2.0</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=bendy-20&amp;l=ur2&amp;o=1" alt="" width="1" height="1" border="0" /> by Michael Kay &#8211; only the paper edition though ;-)</p>
<p>This gave a big boost to my skills and from this point on I made quick progress&#8230;well, quick by my standards.</p>
<p><span id="more-180"></span>I worked through some examples from the book and a few I found online but basically I got stuck right in with converting my TEI files. I decided on outputting to straight-up HTML code as I am quite advanced in coding XHTML and CSS and would be able understand better what was going on.</p>
<p>After many false starts and rewrites I finally finished writing my Super-Lite TEI to XHTML conversion script. Here&#8217;s a rundown of some of the features;</p>
<ul>
<li>Simple Front matter section; Title, Sub-title, Author(s), illustrator(s), Publisher(s), original published date (where given in the source), etc.</li>
<li>TOC and Footnotes &#8211; generated automatically.</li>
<li>Book, Volume, Part and Chapter sections.</li>
<li>Paragraphs, Tables, Quotes [within Quotes within Quotes], Italics, Superscript, etc.</li>
<li>Images with headings and descriptions, when available.</li>
<li>Blockquotes &#8211; enclosing letters of correspondence, line-groups and other quote passages.</li>
<li>Epigraph, Preface, Introduction, Prologue, etc.</li>
<li>Page breaks, thought breaks, etc.</li>
<li>CSS stylesheet additions of ID and Class attributes have been added where useful.</li>
<li>Text alignment; center, right, indenting, etc.</li>
</ul>
<h4>TEI to ePub Conversion using XSLT</h4>
<p>This now brings us to the current state of the project, the next task is to create ePub versions from my master TEI eBooks. I believe most of the hard work regarding the XSLT scripting was done with the TEI to HTML converter so with luck I should be able to get this next script out of the door pretty quickly.</p>
<p>Initially I will just work on books without images although I will try to get some converted early on. There will be a lot more work involved in producing image books and I would prefer to have a reasonable catalogue as quickly as possible.</p>
<p>During the learning phase I will be posting articles to the ePub Books blog following my progress. Although I’ll be working with my custom TEI format I’m hoping these short articles will still be useful to anyone who is considering creating ePub books but is not already an expert in related technologies.</p>
<h4>Making ePub eBooks Freely available for Download</h4>
<p>The next challenge will be to find a way to make all these ePub books available for everyone to download. I could put together a very simple website with the books listed but I really want to make this not only a super easy but also enjoyable experience so I’m currently searching for another solution.</p>
<p>I’ve looked over a number of open source projects including Drupal, Joomla and WordPress, in conjunction with extensions and also some commercial applications. I wasn’t able to find anything commercial and all the Library scripts I found still meant I would need to hand code way too much. But now I think I have now found a solution using part open source and part commercial. I’ll go into more details once I’ve finalised this.</p>
<p>With luck I should have something ready and in place before the end of 2008. Once I reach this goal I can then concentrate on creating more eBooks from the Gutenberg archives. Of course I will start with the obvious Classics, which should keep me busy for a good few months, but will also be setting up a system for book requests.</p>
<p>As books with images take longer to convert I won’t be providing too many to start with. Although I do already have 15 titles in the TEI format, so I will make these available as soon as possible.<br />
I hope you’ve found this set of articles interesting and are as excited as myself about the future of ePubBooks.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.epubbooks.com/180/epubbooks-project-part3-conversion-and-development/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>TEI Converter for EPUB Developers</title>
		<link>http://blog.epubbooks.com/29/tei-converter-available-for-epub-developers</link>
		<comments>http://blog.epubbooks.com/29/tei-converter-available-for-epub-developers#comments</comments>
		<pubDate>Thu, 22 May 2008 20:02:32 +0000</pubDate>
		<dc:creator>Mike Cook</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[TEI]]></category>
		<category><![CDATA[Threepress]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://www.epubbooks.com/blog/?p=29</guid>
		<description><![CDATA[We are seeing more and more tools for creating ePub files being developed and the latest to join the throng is the tei2epub converter from threepress.org. This one however is aimed more for developers than the end user, unlike the BookGlutton ePub API. tei2epub is being developed by Liza Daly and is written in XSLT, [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>We are seeing more and more tools for creating ePub files being developed and the latest to join the throng is the <a title="tei2epub converter from threepress.org" href="http://blog.threepress.org/2008/05/12/convert-tei-to-epub/">tei2epub converter from threepress.org</a>. This one however is aimed more for developers than the end user, unlike the <a title="BookGlutton ePub Converter annoucment" href="/27/bookgluttons-epub-converter-api-is-unveiled">BookGlutton ePub API</a>.</p>
<p>tei2epub is being developed by Liza Daly and is written in XSLT, although it does utilise a little Python. I know nothing about Python but from what I can make out this is mainly for creating the actual files and final .epub container (which is actually just a renamed .zip file).</p>
<p>This converter really interests me as I already have my own converter (pg2tei) for creating TEI documents from plain text files, as found on <a title="Project Gutenberg website" href="http://www.gutenberg.org">Project Gutenberg</a>. I recently started teaching myself XSLT so will follow the development of this for sure!</p>
<p>I don&#8217;t have a Python processor installed so haven&#8217;t ran any files through this, though I have taken a quick look at the source code and it looks quite straight forward. I believe this uses the official stylesheets written by <a title="Text Encoding Initiative website" href="http://www.tei-c.org/">TEI</a>, so the tei2epub converter should be quite simple to follow, even for those of us whose XSLT skills are not yet well developed.</p>
<p>If you&#8217;re interested in both TEI and ePub then this is certainly going to be useful to add to your toolkit.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.epubbooks.com/29/tei-converter-available-for-epub-developers/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

