[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] netscape problems with certain XSL

Subject: [xsl] netscape problems with certain XSL
From: Bruce Gagnon <bgagnon@xxxxxxxxxx>
Date: Mon, 19 Aug 2002 11:49:49 -0400

Hi All,

I'm working on a project that will server up xml/xsl to two browsers IE5.5 and NS6.2 and above. We didn't realize that the
selectSingleNode() method was an IE proprietary interface. Does NS or mozilla support a method like this or has anyone
created a method to support this on the NS browser. It turns out to be a very useful method.

Secondly, we have an xsl file which looks like this:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes"/>

<xsl:template match="/ntwkTree/network">
<div id="tree_top" class="tree" style="position:relative; left:0; top:0; height=10">
<img align="center" src="images/treebox3.gif"/>
<img align="center" src="images/root.gif"/>
<xsl:when test="@sysSelected='1'">Network</xsl:when>
<a href="javascript:void(0)" onclick="SelectNetwork(); return false;">Network</a>
<xsl:apply-templates select="systems"/>

<xsl:template match="systems">
<xsl:for-each select="child::system">
<div class="tree" style="position:absolute; left:18; height=10 ">

<xsl:attribute name="id">sys!<xsl:value-of select="oid/child::text()"/></xsl:attribute>

<xsl:variable name="nename" select="neName/child::text()"/>

<!--img align="center" src="images/treespace.gif"/-->

<xsl:call-template name="boximages">
<xsl:with-param name="withSiblings" select="following-sibling::system"/>
<xsl:with-param name="expandAction" select="@nodestate"/>
<xsl:with-param name="oid" select="oid/child::text()"/>
<xsl:with-param name="branch" select="'system'"/>
<xsl:with-param name="active" select="attribute::sysAct"/>

<xsl:call-template name="alarmimages">
<xsl:with-param name="alarm" select="hAlm/child::text()"/>


IE has no problem handling this... NS stops procesing at the first </div> statement in the Network block. It never process the
<xsl:apply-templates select="systems"/> statement so we don't get to the System block.
Any idea what might be wrong?


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread