[xsl] XSL tags in IE5 * , browser problem ???

Subject: [xsl] XSL tags in IE5 * , browser problem ???
From: Suman.Sathyanarayan@xxxxxxxxxxxx
Date: Mon, 29 Apr 2002 08:29:58 +0530
I have an XML file which is a batch response


<batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
urn:oasis:names:tc:DSML:2:0:core DSMLv2.xsd" requestID="1.232.343">
<searchResponse>
<searchResultEntry dn="ou=Green Point Development">
      <attr name="gpfbusinesscategory">
        <value>"Company"</value>
      </attr>
      <attr name="ou">
        <value>"Green Point Development"</value>
      </attr>
      <attr name="businesscategory">
        <value>"Company"</value>
      </attr>
      <attr name="objectclass">
        <value>"GPFOrganizationalUnit"</value>
        <value>"organizationalUnit"</value>
        <value>"top"</value>
      </attr>
    </searchResultEntry>
<searchResultEntry dn="ou=Green Point Development">
      <attr name="gpfbusinesscategory">
        <value>"Company"</value>
      </attr>
      <attr name="ou">
        <value>"Green Point Development"</value>
      </attr>
      <attr name="businesscategory">
        <value>"Company"</value>
      </attr>
      <attr name="objectclass">
        <value>"GPFOrganizationalUnit"</value>
        <value>"organizationalUnit"</value>
        <value>"top"</value>
      </attr>
    </searchResultEntry>
<searchResultEntry dn="ou=suman company">
      <attr name="gpfbusinesscategory">
        <value>"Company"</value>
      </attr>
      <attr name="ou">
        <value>"suman company"</value>
      </attr>
      <attr name="gpfurl6">
        <value>"www.gp.com"</value>
      </attr>
      <attr name="businesscategory">
        <value>"Company"</value>
      </attr>
      <attr name="objectclass">
        <value>"GPFOrganizationalUnit"</value>
        <value>"organizationalUnit"</value>
        <value>"top"</value>
      </attr>
      <attr name="gpfurl2">
        <value>"www.greenpoint.com"</value>
      </attr>
      <attr name="gpfurl1">
        <value>"Lake View"</value>
      </attr>
    </searchResultEntry>
    <searchResultDone>
      <control type="0.1.1" criticality="false">
        <controlValue/>
      </control>
      <resultCode code="2"/>
    </searchResultDone>
</searchResponse>
</batchResponse>

I want to write an XSL which returns me a table containing the column
headers :

Company name | Url1 | Url2 | Url3 | Url4 |

the only way i can match the values are by using the
<attr name="ou">
which stands for Company name
<attr name="gpfUrl1">
which stands for Url1

etc etc.

Can you please help me ???
Please note :::
I am using IE 5.0
so the namespace

<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform";>
does'nt work
SO
i have to use the name space
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>


I was trying out , but dint work :((

<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
<xsl:template match="/">
<html>
<head>
<title>XYZ</title>
</head>
<body>
  <table width="90%" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td>Company Name</td>
    <td>Url 1</td>
    <td>Url 2</td>
    <td>Url 3</td>
    <td>Url 4</td>
  </tr>
    <xsl:for-each select="
batchResponse/searchResponse/searchResultEntry/attr[name='ou']">
        <tr>
    <td>

Here the <xsl:if tags also dont work ........
      <xsl:value-of select="value"></xsl:value-of>
    </td>
           </tr>
           </xsl:for-each>

  </table><!-- End result Table-->
</body>
</html>
</xsl:template>
</xsl:stylesheet>


regards,
Suman




-----------------------Disclaimer------------------------

The views of the author may not necessarily reflect those
of the Company. All liability is excluded to the extent
permitted by law for any claims arising as a result of the
use of this medium to transmit information by or to
IT Solutions (India) Pvt. Ltd.

We have taken precautions to minimize the risk of
transmitting software viruses, but we advise you to
carry out your own virus checks on any attachment to
this message.  We cannot accept liability for any loss or
damage caused by software viruses.

------------------------Disclaimer------------------------


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


Current Thread