Hi,
Thanks for the reply. I have one problem using the xml file to transform.
Below is my code where I call the soapserver that returns a xml file . Here
soap-result should contain my xml file.
When I tried to get the new xsl in the stylesheets I am getting an error
The element type "META" must be terminated by the matching end-tag "</META>".
and I do not have META any where. Can anyone please tell me what I am doing
wrong here.
<xscript:variable name="soap-result">
<soap:call url="http://localhost:8080/axis/services/HelloAxis">
<ns1:sayHello xmlns:ns1="urn:HelloAxis">
<soap:enc/>
<symbol xsi:type="xsd:string" xmlns:xsi="http://
www.w3.org/1999/XMLSchema-instance" xmlns:xsd=" </
ns1:sayHello>
</soap:call>
</xscript:variable>
<xscript:variable name="stylesheet"
href="stylesheets/soap-hello.xsl"/>
<xscript:transform name="soap-result" stylesheet="stylesheet"/>
Thanks,
Anna.
On Tuesday 10 February 2004 05:04 pm, Alten, Jelle Paul wrote:
> Hi Anna,
>
> Well, what I'd try: you can make a pipeline that calls the soap server,
> transform the result into html and serialize it...
>
> for example:
> make a pipeline like this:
>
> <map:generate
> src="http://www.soapserver.com/soaprequest?reqarg=argvalue"/>
> <map:transform src="transforms/soap2html.xsl">
> <map:serialize/>
>
>
> where the generate src should point to your soapserver with the right
> request
> and the soap2html.xsl in the transforms directory would be somethink like
> the following transformation (I just hacked it up for you, hope it shows
> what you can do.
>
> greetings,
>
> Jelle
>
> -->> transforms/soap2html.xsl <<--
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
>
> <xsl:template match="/">
> <html>
> <head>
> <title>SOAP Message</title>
> <style type="text/css">
> code {color: #808080;}
> </style>
> </head>
> <body>
> <table border="1">
> <xsl:for-each select="*">
> <tr>
> <th><xsl:value-of
> select="name()"/></th>
> <td><xsl:apply-templates
> select="." mode="value"/></td>
> </tr>
> </xsl:for-each>
> </table>
> </body>
> </html>
> </xsl:template>
>
> <xsl:template match="*[not(*) and count(text())=1]">
> <tr>
> <th><xsl:value-of select="name()"/></th>
> <td><xsl:value-of select="."/></td>
> </tr>
> </xsl:template>
>
> <xsl:template match="*">
> <tr>
> <td colspan="2">
> <xsl:for-each select="@*">
> <xsl:if test="position()>1"><br/></xsl:if>
> <code><xsl:value-of
> select="name()"/>=<xsl:value-of select="."/></code>
> </xsl:for-each>
> </td>
> </tr>
> <xsl:for-each select="*">
> <tr>
> <th><xsl:value-of select="name()"/></th>
> <td><xsl:apply-templates select="."
> mode="value"/></td>
> </tr>
> </xsl:for-each>
>
> </xsl:template>
>
> <xsl:template match="*[*]" mode="value">
> <table border="1"><xsl:apply-templates select="."/></table>
> </xsl:template>
>
>
> </xsl:stylesheet>
>
>
>
>
> -->> end of file <<--
>
>
>
>
>
> -----Oorspronkelijk bericht-----
> Van: Anna Bikkina [mailto:[EMAIL PROTECTED]
> Verzonden: dinsdag 10 februari 2004 21:47
> Aan: [EMAIL PROTECTED]
> Onderwerp: Cocoon and soap
>
>
> Hi all,
>
> I am trying to write a cocoon page which talks to a soap server . The soap
> envelope has an xml file. I have to display this xml file as html using
> cocoon. Can anyone tell me how I can do that in cocoon. Below is my soap
> envelope.
>
> -<soapenv:Envelope>
> +<soapenv:Body>
> +<ns1:sayHelloResponse
> soapenv:encodingStyle="http://schemas.xmlsoap.org/
> soap/encoding/">
> <ns1:sayHelloReturn href="#id0"/>
> </ns1:sayHelloResponse>
> +<multiRef id="id0" soapenc:root="0"
> soapenv:encodingStyle="http://
>
> schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Document">
> -<slideshow title="SampleSlide Show">
> -<slide>
> <title>Overview</title>
> <item>n1</item>
> </slide>
> -<slide>
> <title>Introduction</title>
> <item>check this out</item>
> </slide>
> </slideshow>
> </multiRef>
> </soapenv:Body>
> </soapenv:Envelope>
>
> Thanks in advance,
> Anna.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]