Bugzilla – Attachment 11802 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.16 KB, created by
Tomás Cohen Arazi (tcohen)
on 2012-08-23 18:11:45 UTC
(
hide
)
Description:
Bug 8678: XSLT stylesheets output XML, but HTML is needed
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2012-08-23 18:11:45 UTC
Size:
10.16 KB
patch
obsolete
>From ff67af601615fdaca2c7d88ae45891018508abae 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. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> >--- > .../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 c7fb89c..8224b16 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 b6db8b4..ad729ef 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.9.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