RE: XSL transformer

This list is provided to allow people to make comments on the XPath 1.0
specification, for the attention of the W3C working groups responsible.

If you want programming help with XSLT and XPath, please use the xsl-list
provided by mulberrytech.com

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: www-xpath-comments-request@w3.org 
> [mailto:www-xpath-comments-request@w3.org] On Behalf Of Amila 
> Liyanaarachchi
> Sent: 05 August 2008 12:39
> To: www-xpath-comments@w3.org
> Subject: XSL transformer
> 
> Hi,
>  
> I need to perform the following transformation, any help will 
> be appreciated,
>  
>  
> -------- input xml -------------
> <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <ns1:driveTimeDisResponse 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encodin
> g/" xmlns:ns1="http://routing.soap.geosolutions.be">
>          <driveTimeDisReturn href="#id0"/>
>       </ns1:driveTimeDisResponse>
>       <multiRef id="id0" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encodin
> g/" xsi:type="ns2:SoapReturnDriveTime" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
> xmlns:ns2="http://beans.soap.geosolutions.be">
>          <errorCode xsi:type="soapenc:string"/>
>          <errorMessage xsi:type="soapenc:string"/>
>          <routesInfo soapenc:arrayType="ns2:GenRouteInfo[1]" 
> xsi:type="soapenc:Array">
>             <routesInfo href="#id1"/>
>          </routesInfo>
>          <token xsi:type="soapenc:string">XXX</token>
>       </multiRef>
>       <multiRef id="id1" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encodin
> g/" xsi:type="ns3:GenRouteInfo" 
> xmlns:ns3="http://beans.soap.geosolutions.be" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>          <distance href="#id2"/>
>          <time href="#id3"/>
>       </multiRef>
>       <multiRef id="id2" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encodin
> g/" xsi:type="xsd:long" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">7377
> 0</multiRef>
>       <multiRef id="id3" soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encodin
> g/" xsi:type="xsd:long" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">2884
> </multiRef>
>    </soapenv:Body>
> </soapenv:Envelope>
> -------------------------------------
>  
> --- expected output ----
> <AAA>
> <distance>73770</distance>
> <time>2884</time>
> </AAA>
> ---------------------------------
> --------------------------------------------------------------
> ----------------
> 
> CONFIDENTIALITY AND DISCLAIMER NOTICE
> 
> This e-mail, including any attachments, is confidential and 
> intended only for the addressee. If you are not the intended 
> recipient, please notify us immediately and delete this 
> e-mail from your system. Any use or disclosure of the 
> information contained herein is strictly prohibited.
> 
> 

Received on Wednesday, 6 August 2008 10:37:57 UTC