Skip to content

Instantly share code, notes, and snippets.

View abdelazer's full-sized avatar

Keith Fahlgren abdelazer

View GitHub Profile
@abdelazer
abdelazer / namespaced_xhtml_transform.xsl
Created August 10, 2011 20:23
Transforming Namespaced XHTML with XSLT
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:x="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="x"
version="1.0">
<!-- By default, copy everything unless we have a rule otherwise -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
@abdelazer
abdelazer / epub_to_opds_entry.py
Created April 6, 2011 17:55
A Python program to accept EPUB files as arguments and output an OPDS Catalog Entry skeleton based on the EPUB's metadata
#!/usr/bin/env python
# encoding: utf-8
"""
epub_to_opds_entry.py
Created by Keith Fahlgren on Tue Apr 5 21:21:02 PDT 2011
Copyright (c) 2011 Threepress. All rights reserved.
All rights reserved.
Redistribution and use in source and binary forms, with or without