W3C home > Mailing lists > Public > www-ws@w3.org > April 2003

Help in XSL creation

From: <rabatan.fe@pg.com>
Date: Thu, 24 Apr 2003 16:50:29 +0800
To: www-ws@w3.org
Message-ID: <OF4B1B67C7.D9C260E1-ON48256D12.00303FC6@na.pg.com>

Hi,

     Im very new in the world of XML and currently reading about XSL creation.
I have a SOAP response message with several URIs and namespaces.  When I try to
create the XSL for this soap message, no data appears.  My thinking is that the
presence of namespaces in the soap message is not properly recognized in the XSL
document and I dont know how to "define" them.  COuld I get some suggestions how
can i do it?

     Here's the SOAP message:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="sum.xsl"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<Z_WS_FROI_SUM.Response  xmlns="urn:sap-com:document:sap:rfc:functions">
<RESULT>3</RESULT>
</Z_WS_FROI_SUM.Response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

     Heres' the XSL docu:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <html>
  <body>
  <h1>Summation Web Service</h1>
    <table border="1">
      <tr bgcolor="#9acd32">
        <th align="center">Results</th>
      </tr>
      <tr>
            <th><xsl:value-of select="SOAP-ENV:Envelope/SOAP-ENV:Body/Z_WS_FROI_SUM.Response/RESULT"/></th>
       </tr>
    </table>
  </body>
  </html>
</definitions>
</xsl:template>
</xsl:stylesheet>

Thanks
Froi
Received on Thursday, 24 April 2003 05:25:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 July 2007 12:25:41 GMT