Bugs 3646 and 2651: Changes the output of compact.xsl from html to xhtml.
authorGarry Collum <gcollum@gmail.com>
Fri, 18 Sep 2009 16:29:57 +0000 (12:29 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Mon, 8 Feb 2010 12:48:39 +0000 (07:48 -0500)
Changes the output of compact.xsl to XHTML for catalogue/showmarc.pl?viewas=card.

Adds <title> element in <head>.
Removes link to nonexistent css file (bug 2651).

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/xslt/compact.xsl

index 0916cda..43d7f53 100644 (file)
@@ -4,13 +4,13 @@
   xmlns="http://www.w3.org/1999/xhtml"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:marc="http://www.loc.gov/MARC21/slim" 
+  exclude-result-prefixes="xsi marc"
   version="1.0">
-  <xsl:output method="html" doctype-public="-//W3C/DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" />    
+  <xsl:output method="xml" version="1.0" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />    
       <xsl:template match="/">
         <html>
           <head>
-            <meta http-equiv="Content-Type" content="text/html" charset="utf-8"/>
-            <link href="/koha-tmpl/opac-tmpl/prog/en/css/xsl.css" rel="stylesheet" type="text/css" />
+           <title>MARC Card View</title>
           </head>
           <body>
            <xsl:apply-templates/>