Bug 8678: XSLT stylesheets output XML, but HTML is needed
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> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
e71a78b878
commit
cb7f8d1a7f
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)"/>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)"/>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)"/>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)"/>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)"/>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)"/>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue