This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

netscape problems with certain XSL



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:choose>
<xsl:when test="@sysSelected='1'">Network</xsl:when>
<xsl:otherwise>
<a href="javascript:void(0)" onclick="SelectNetwork(); return false;">Network</a>
</xsl:otherwise>
</xsl:choose>
</div>
<xsl:apply-templates select="systems"/>
</xsl:template>

<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>


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

.
.
.

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?

Thanks,
Bruce



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]