RE: [xsl] Crash the Microsoft Browser

Subject: RE: [xsl] Crash the Microsoft Browser
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Mon, 29 Mar 2004 09:32:59 -0600
Hi Shashi,

It would help if you post your XML or an extract of it.

<prs/>
http://www.pietsieg.com
http://www.pietsieg.com/dotnetnuke
 

-----Original Message-----
From: Shashi.Bhushan@xxxxxxxxx [mailto:Shashi.Bhushan@xxxxxxxxx] 
Sent: Sunday, March 28, 2004 10:12 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Crash the Microsoft Browser

Hi

I have one Xml which have three different attribute Title,Reference By and
Identifier.
Using XSL  i populate this in the form of table and also provide three
button to sort the data in Title,Reference By and Identifier.
For this i made a three different xsl file sort by title,sort by reference
and sort by identifer.
When user click on reference by button it load the reference.xsl file on the
xml.Same in the other two cases.
The examle xsl i used is :
----------------------
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:template match="/SearchResult">
<table border="1" cellpadding="0" cellspacing="0"  bgcolor="#007f82">
   <thead>
      <tr border="1">
       <th width="25%" align="center"><input name="display" type="button"
class="submitSearch"

onclick="javascript:sort('1')" value="Display" width="25%" /></th>
       <th width="58%" align="center"><input name="reference" type="button"
class="submitSearch"

onclick="javascript:sort('2')" value ="Referenced By" width="50%" /></th>
      <th width="4%"  align="center"><font size='1' color
='white'>Format</font></th>
        <th  width="10%" align="center" ><input name="identifier" type
="button"   class="submitSearch"

onclick="javascript:sort('3')" value="Identifier" width="25%" /></th>
     </tr>
     </thead>
<tbody>
       <xsl:apply-templates select="Result//ReferencedBy">
            <xsl:sort select="../@title"/>
      </xsl:apply-templates>
</tbody>
<tr><td colspan="4"><xsl:text> &#160;  </xsl:text></td></tr> <tr><td
colspan="4"><b>No.of Records in Search:-<xsl:value-of select
="count(Result/ReferencedBy)"/></b></td></tr>
</table>
</xsl:template>
<xsl:template match="ReferencedBy">
      <tr bgcolor="#007f82" border="1">

          <td  width="25%" border="1" >

          <a class="tdbordersearch">
      <xsl:attribute name="href">

                  <xsl:if test="not(normalize-space(../@open)) and
not(normalize-space(../@save)) ">
                        ../../<xsl:value-of select="../@open"/>
                  </xsl:if>
                  <xsl:if test="not(normalize-space(../@save))">
                        <xsl:if test="substring(../@open,0,5)='http'">
                              <xsl:value-of select="../@open"/>
                        </xsl:if>
                        <xsl:if test="substring(@open,0,5)!='http'">

                                    ../../<xsl:value-of select="../@open"/>
                        </xsl:if>
                  </xsl:if>
                  <xsl:if test="string(../@save)">
                        ../../<xsl:value-of select="../@save"/>
                  </xsl:if>
            </xsl:attribute>

                <xsl:value-of select="../@title"/>
                </a>
          </td>
           <td  width="55%" border="1">

                  <a class="tdbordersearch">

<xsl:attribute name="href">
                              ../../<xsl:value-of select="@open"/>
                        </xsl:attribute>
                        <xsl:value-of select='@title'/>
                  </a>
           </td>
           <td class="tdbordersearch" width="4%" border="1">

            <xsl:if test="normalize-space(../@exceptionicon)">
                  <img>
                    <xsl:attribute name
="src">images/usa.gif</xsl:attribute>
                    <xsl:attribute name="width">100%</xsl:attribute>

                  </img>
            </xsl:if>
            <xsl:if test="not(normalize-space(../@exceptionicon))">
                  <xsl:text> &#160;  </xsl:text>
            </xsl:if>
           </td>
           <td class="tdbordersearch" width="10%" border="1" >

<xsl:value-of select="../@identifier"/><xsl:text> &#160;  </xsl:text></td>

        </tr>




</xsl:template>

</xsl:stylesheet>

------------------------------------------

The problem i faced is using concurrently these sorting button crash the
Interenet Explorer.

Please help me on this .

Thanks & Regards

Shashi Bhushan










Whilst this email has been checked for all known viruses, recipients should
undertake their own virus checking as Xansa will not accept any liability
whatsoever.

This email and any files transmitted with it are confidential and protected
by client privilege.  It is solely for the use of the intended recipient.
Please delete it and notify the sender if you have received it in error.
Unauthorised use is prohibited.

Any opinions expressed in this email are those of the individual and not
necessarily the organisation.
     Xansa, Registered Office: 420 Thames Valley Park Drive,
     Thames Valley Park, Reading, RG6 1PU, UK.
     Registered in England No.1000954.
     t  +44 (0)8702 416181
     w  www.xansa.com

Current Thread