[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

netscape problems with certain XSL

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

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.