adding client side xslt for rendering in IE
[Evergreen.git] / Open-ILS / xsl / ATOM2XHTML.xsl
index fd6a58b..f72af2f 100644 (file)
@@ -40,7 +40,7 @@ To-do list:
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  exclude-result-prefixes="xsl opensearch opensearchOld atom rss9 rdf rss1 content dc xhtml"
  >
-       <xsl:output omit-xml-declaration="yes" method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" encoding="UTF-8" media-type="application/xhtml+xml" />
+       <xsl:output omit-xml-declaration="yes" method="html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" encoding="UTF-8" media-type="text/html" />
        
        <!-- START SETTINGS -->
        <!-- text used; change this for translation and also some settings -->
@@ -72,8 +72,8 @@ To-do list:
        <xsl:variable name="t-comments">comments</xsl:variable> <!-- leave blank to not show link to comments -->
        <xsl:variable name="t-download">download</xsl:variable> <!-- leave this or t-enclosure blank to not show link to enclosures -->
        <xsl:variable name="t-enclosure">enclosure</xsl:variable> <!-- text of untitled enclosures; leave this or t-download blank to not show link to enclosures -->
-       <xsl:variable name="t-numsep"><xsl:text>,</xsl:text></xsl:variable> <!-- text to separate number of over 3 digits (eg ',' or ' '); leave blank for no separator-->
        <!-- END SETTINGS -->
+
        
        <xsl:template match="/">
                <xsl:comment>For information about the XSLT file that generated this, see http://opensearch.a9.com/docs/stylesheet.jsp</xsl:comment>
@@ -93,6 +93,9 @@ To-do list:
 
        <xsl:template match="atom:feed | rss/channel | rdf:RDF">
                <xsl:variable name="language" select="(@xml:lang | language)[1]" />
+               <xsl:text disable-output-escaping="yes">&lt;?xml-stylesheet type="text/xsl" href="</xsl:text>
+               <xsl:value-of select="$base_dir" />
+               <xsl:text>/html_xsl.xml"?></xsl:text>
                <html xml:lang="{$language}" lang="{$language}">
                        <xsl:variable name="query" select="opensearch:Query[@role='request' and @searchTerms][1]/@searchTerms" />
                        <xsl:variable name="statedtitle" select="(atom:title | title | //rss1:channel/rss1:title | //rss9:channel/rss9:title)[1]" />
@@ -192,7 +195,7 @@ To-do list:
                                                        </xsl:choose>
                                                        <xsl:value-of select="concat(' ', $t-resultsto, ' ')" />
                                                        <xsl:value-of select="$endIndex" />
-                                                       <xsl:if test="$totalresults&gt;0"><xsl:value-of select="concat(' ', $t-resultsof, ' ')" /><xsl:number value="$totalresults" grouping-size="3" grouping-separator="{$t-numsep}" /></xsl:if>
+                                                       <xsl:if test="$totalresults&gt;0"><xsl:value-of select="concat(' ', $t-resultsof, ' ')" /><xsl:number value="$totalresults" grouping-size="3" grouping-separator="," /></xsl:if>
                                                        <xsl:if test="string-length($navnext)&gt;0 or string-length($navprev)&gt;0">   |   </xsl:if>
                                                        <xsl:if test="string-length($navprev)&gt;0">
                                                                <a class="x-escape" href="{$navprev}" rel="previous"><xsl:value-of select="$t-prevlink" disable-output-escaping="yes" /></a>
@@ -210,7 +213,7 @@ To-do list:
                                                        </xsl:choose>
                                                        <xsl:value-of select="concat(' ', $t-resultsto, ' ')" />
                                                        <xsl:value-of select="$endIndex" />
-                                                       <xsl:if test="$totalresults&gt;0"><xsl:value-of select="concat(' ', $t-resultsof, ' ')" /><xsl:number value="$totalresults" grouping-size="3" grouping-separator="{$t-numsep}" /></xsl:if>
+                                                       <xsl:if test="$totalresults&gt;0"><xsl:value-of select="concat(' ', $t-resultsof, ' ')" /><xsl:number value="$totalresults" grouping-size="3" grouping-separator="," /></xsl:if>
                                                        <xsl:if test="string-length($navnext)&gt;0 or string-length($navprev)&gt;0">   |   </xsl:if>
                                                        <xsl:if test="string-length($navprev)&gt;0">
                                                                <a class="x-escape" href="{$navprev}" rel="previous"><xsl:value-of select="$t-prevlink" disable-output-escaping="yes" /></a>