Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xsl not working in IE 5.0

Status
Not open for further replies.

Abe123

Programmer
Jan 17, 2002
1
US
Hi folks,

I am trying to run the following xml with the
associated xsl, but the string from the xml
file "or should I say goodbye" doesn't show.

Does any body know why ?

Thanks,

hello2.xsl is as follows :
<xsl:stylesheet version=&quot;1.0&quot;
xmlns:xsl=&quot;<xsl:template match=&quot;/&quot;>
<H1>Hello World (from hello2-xsl)</H1>
<H1><xsl:value-of select=&quot;hello&quot;/></H1>
</xsl:template>
</xsl:stylesheet>

hello2.xml is as follows :
<?xml version=&quot;1.0&quot;?>
<?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;XSL/hello2.xsl&quot;?>
<hello>or should I say goodbye</hello>
 
IE 5.0 doesn't support the xsl namespace It only supports the xsl namespace which is based on a working draft of xsl.

Changing the namespace will let your sample work but most of the xsl and xpath syntax avaiable will not work with this namespace.

Good luck!

Jordi Reineman
Cap Gemini Ernst & Young
 
If you download and install the XML 3 parser from MSDN on the Microsoft site and install it in replace mode (its in the instructions), it does fully support the required xsl namspace and allows full access to XSLT etc.

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
i was under the impression that namespaces didnt really do anythign except help to make your tag names ect, unique. if there is nothing at the URL, how can it effect what can and can not be done? Kenneth Birney
User Interface Programmer
Scottish Police
 
I'm not sure about the namespace either. What I did find is that there are two different sets of commands to use depending on wether you use MSXML2 or MSXML3 in replace mode.

If you download the MSXML3 SDK from Microsoft the examples in the help file show you the differences that you need to make to your XSL depending on the parser installation type.

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
i see your company is located in Scotland. where abouts? im from Paisley but i work in glasgow Kenneth Birney
User Interface Programmer
Scottish Police
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top