Skip to content

Commit

Permalink
SOAP: remove useless script block from XSLT
Browse files Browse the repository at this point in the history
The js file referenced in the XSLT is missing from the distribution,
which causes errors in the apache error logs:
File does not exist: /path/to/mantisbt/api/soap/wsdl-viewer.js

As per the XSLT's author,

On 23 January 2015 at 18:03, Tomi Vanek <tomi.vanek@gmail.com> wrote:
> JS - that was just a plan that was never finished - browsers block JS
> from file system, so I did not go in that direction, just forgot the
> link in generated code - this is a harmless bug

This commit resolves the issue by removing the <script> block from the
XSLT file.

Fixes #18049
  • Loading branch information
dregad committed Feb 2, 2015
1 parent e92bdb6 commit 21832b8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions api/soap/wsdl-viewer.xsl
Expand Up @@ -23,7 +23,7 @@
<!--
* ====================================================================
* wsdl-viewer.xsl
* Version: 3.1.02
* Version: 3.1.02-mantis.1
*
* URL: http://tomi.vanek.sk/xml/wsdl-viewer.xsl
*
Expand Down Expand Up @@ -144,6 +144,7 @@
* 2007-12-23 - 3.1.01 - Terminating message by WS without interface or service definition was removed
* (seems to be a correct state)
* 2008-08-20 - 3.1.02 - Woden-214: Anti-recursion bypassed in xsd:choice element
* 2015-02-02 - 3.1.02-mantis.1 - removed unnecessary wsdl-viewer.js <script> block
* ====================================================================
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Expand Down Expand Up @@ -2253,13 +2254,6 @@ h3 {
<style type="text/css">
<xsl:value-of select="$css" disable-output-escaping="yes"/>
</style>

<script src="wsdl-viewer.js" type="text/javascript" language="javascript">
<xsl:comment>
<xsl:text>
// </xsl:text>
</xsl:comment>
</script>
</head>
</xsl:template>

Expand Down

0 comments on commit 21832b8

Please sign in to comment.