Bugzilla – Attachment 11798 Details for
Bug 8678
XSLT stylesheets output XML, but HTML is needed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8678: XSLT stylesheets output XML, but HTML is needed
Bug-8678-XSLT-stylesheets-output-XML-but-HTML-is-n.patch (text/plain), 10.10 KB, created by
Jared Camins-Esakov
on 2012-08-23 16:29:03 UTC
(
hide
)
Description:
Bug 8678: XSLT stylesheets output XML, but HTML is needed
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-08-23 16:29:03 UTC
Size:
10.10 KB
patch
obsolete
>From f0e86756dc0cad4d0811d9af42385ff7f831093a Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Thu, 23 Aug 2012 12:27:49 -0400 >Subject: [PATCH] Bug 8678: XSLT stylesheets output XML, but HTML is needed >Content-Type: text/plain; charset="UTF-8" > >Because we are embedding the results of XSLT stylesheets in HTML, we >need to output HTML instead of XML. Outputting XML results in >non-standard-compliant (or at least non-Firefox-compliant) markup. > >To test: >View a variety of XSLT-rendered pages on the OPAC and intranet, and >confirm that all look as expected. >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 2 +- > .../prog/en/xslt/MARC21slim2intranetResults.xsl | 2 +- > .../prog/en/xslt/NORMARCslim2intranetDetail.xsl | 2 +- > .../prog/en/xslt/NORMARCslim2intranetResults.xsl | 2 +- > .../prog/en/xslt/UNIMARCslim2intranetDetail.xsl | 2 +- > .../prog/en/xslt/UNIMARCslim2intranetResults.xsl | 2 +- > .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 2 +- > .../prog/en/xslt/MARC21slim2OPACResults.xsl | 2 +- > .../prog/en/xslt/NORMARCslim2OPACDetail.xsl | 2 +- > .../prog/en/xslt/NORMARCslim2OPACResults.xsl | 2 +- > .../prog/en/xslt/UNIMARCslim2OPACDetail.xsl | 2 +- > .../prog/en/xslt/UNIMARCslim2OPACResults.xsl | 2 +- > 12 files changed, 12 insertions(+), 12 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 700cfeb..3a78291 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -9,7 +9,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="MARC21slimUtils.xsl"/> >- <xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" /> >+ <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> > <xsl:template match="/"> > <xsl:apply-templates/> > </xsl:template> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index b4c4cde..de7c155 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -7,7 +7,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="MARC21slimUtils.xsl"/> >- <xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" /> >+ <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> > <xsl:key name="item-by-status" match="items:item" use="items:status"/> > <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl >index c28116a..5ea4fc7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl >@@ -6,7 +6,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="NORMARCslimUtils.xsl"/> >- <xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" /> >+ <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> > <xsl:template match="/"> > <xsl:apply-templates/> > </xsl:template> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetResults.xsl >index 5721e49..373f482 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetResults.xsl >@@ -7,7 +7,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="MARC21slimUtils.xsl"/> >- <xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" /> >+ <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> > <xsl:key name="item-by-status" match="items:item" use="items:status"/> > <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl >index 4ead40d..5c80f08 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl >@@ -9,7 +9,7 @@ > exclude-result-prefixes="marc items"> > > <xsl:import href="UNIMARCslimUtils.xsl"/> >-<xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" /> >+<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> > <xsl:template match="/"> > <xsl:apply-templates/> > </xsl:template> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl >index 0ed7bf5..be83929 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl >@@ -6,7 +6,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="UNIMARCslimUtils.xsl"/> >-<xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" /> >+<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> > <xsl:key name="item-by-status" match="items:item" use="items:status"/> > <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >index 489aee2..7a10763 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >@@ -7,7 +7,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="MARC21slimUtils.xsl"/> >- <xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" /> >+ <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> > <xsl:template match="/"> > <xsl:apply-templates/> > </xsl:template> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >index 2b5aacc..8522113 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >@@ -7,7 +7,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="MARC21slimUtils.xsl"/> >- <xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" /> >+ <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> > <xsl:key name="item-by-status" match="items:item" use="items:status"/> > <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl >index 3a77417..0460880 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl >@@ -9,7 +9,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="NORMARCslimUtils.xsl"/> >- <xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" /> >+ <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> > <xsl:template match="/"> > <xsl:apply-templates/> > </xsl:template> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >index c6b700a..ba89d94 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >@@ -9,7 +9,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="NORMARCslimUtils.xsl"/> >- <xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" /> >+ <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> > <xsl:key name="item-by-status" match="items:item" use="items:status"/> > <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl >index c7dd167..ef2f4c1 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl >@@ -9,7 +9,7 @@ > exclude-result-prefixes="marc items"> > > <xsl:import href="UNIMARCslimUtils.xsl"/> >-<xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" /> >+<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> > <xsl:template match="/"> > <xsl:apply-templates/> > </xsl:template> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >index e7ff9da..16518ee 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >@@ -9,7 +9,7 @@ > exclude-result-prefixes="marc items"> > > <xsl:import href="UNIMARCslimUtils.xsl"/> >-<xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" /> >+<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> > <xsl:key name="item-by-status" match="items:item" use="items:status"/> > <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> > >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8678
:
11798
|
11802