Fix class attribute conditions
diff --git a/xslt/epub2i5.xsl b/xslt/epub2i5.xsl
index 74030f9..ea0f1a9 100644
--- a/xslt/epub2i5.xsl
+++ b/xslt/epub2i5.xsl
@@ -376,13 +376,13 @@
         <xsl:apply-templates/>
     </xsl:template>
 
-    <xsl:template match="xhtml:b|xhtml:span[class='b']">
+    <xsl:template match="xhtml:b|xhtml:span[@class='b']">
         <hi rend="bold">
             <xsl:apply-templates/>
         </hi>
     </xsl:template>
 
-     <xsl:template match="xhtml:i|xhtml:span[class='i']">
+     <xsl:template match="xhtml:i|xhtml:span[@class='i']">
         <hi rend="italic">
             <xsl:apply-templates/>
         </hi>