Fix for bug in x2script.xsl (to make it work in Mozilla)

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
taronas
Posts: 362
Joined: Tue, 26. Aug 03, 20:31
x4

Fix for bug in x2script.xsl (to make it work in Mozilla)

Post by taronas » Sun, 18. Jan 04, 13:50

hello egosoft,

just a note about a bug in the stylesheet used to display scripts in a webbrowser:

the namespace for xsl should not refer to the working draft spec but to the final xsl specification. The fact that MSIE does not complain does not necessarrily mean it is correct ;)

So just change

Code: Select all

http://www.w3.org/TR/WD-xsl

in <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" version="1.0" >

to

Code: Select all

http://www.w3.org/1999/XSL/Transform

in <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >

With this line done right not only the buggy MSIE can display the XML script files but also more modern, xml capable browsers like the ones based on Mozilla render the XML scripts correctly.

thanks

Post Reply

Return to “X²: The Threat - Scripts and Modding”