XSL Tranformation

WAS, Netweaver, Fiori

XSL Tranformation

Postby Alva1590 » Tue Jun 21, 2005 10:49 am

Hallo, kann mir jemand helfen die folgende Google-SOAP-Response mittels XSLT in eine ABAP Struktur/Tabelle zu mappen ?

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
  3. <SOAP-ENV:Body>
  4. <ns1:doGoogleSearchResponse xmlns:ns1="urn:GoogleSearch" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  5. <return xsi:type="ns1:GoogleSearchResult">
  6. <directoryCategories xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Array" ns2:arrayType="ns1:DirectoryCategory[0]">
  7. </directoryCategories>
  8. <documentFiltering xsi:type="xsd:boolean">true</documentFiltering>
  9. <endIndex xsi:type="xsd:int">10</endIndex>
  10. <estimateIsExact xsi:type="xsd:boolean">false</estimateIsExact>
  11. <estimatedTotalResultsCount xsi:type="xsd:int">49</estimatedTotalResultsCount>
  12.  
  13. <resultElements xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Array" ns3:arrayType="ns1:ResultElement[10]">
  14.    <item xsi:type="ns1:ResultElement">
  15.       <URL xsi:type="xsd:string">http://hci.stanford.edu/~winograd/shrdlu/</URL>
  16.       <cachedSize xsi:type="xsd:string">13k</cachedSize>
  17.       <directoryCategory xsi:type="ns1:DirectoryCategory">
  18.       <fullViewableName xsi:type="xsd:string"></fullViewableName>
  19.       <specialEncoding xsi:type="xsd:string"></specialEncoding>
  20.       </directoryCategory>
  21.       <directoryTitle xsi:type="xsd:string"></directoryTitle>
  22.       <hostName xsi:type="xsd:string"></hostName>
  23.       <relatedInformationPresent xsi:type="xsd:boolean">true</relatedInformationPresent>
  24.       <snippet xsi:type="xsd:string"><b>SHRDLU</b> is described in <b>Winograd&#39;s</b> dissertation, which was issued as MIT AI Technical<br>  <b>...</b> <b>SHRDLU</b> was written in <b>MacLisp</b> for the ITS system, vintage 1970. <b>...</b></snippet>
  25.       <summary xsi:type="xsd:string"></summary>
  26.       <title xsi:type="xsd:string"><b>SHRDLU</b></title>
  27.    </item>
  28.  
  29. </resultElements>
  30. <searchComments xsi:type="xsd:string"></searchComments>
  31. <searchQuery xsi:type="xsd:string">shrdlu winograd maclisp teletype</searchQuery>
  32. <searchTime xsi:type="xsd:double">0.031944</searchTime>
  33. <searchTips xsi:type="xsd:string"></searchTips>
  34. <startIndex xsi:type="xsd:int">1</startIndex>
  35. </return>
  36. </ns1:doGoogleSearchResponse>
  37.  
  38. </SOAP-ENV:Body>
  39. </SOAP-ENV:Envelope>
  40.  
GeSHi ©
Alva1590
.....
.....
 
Posts: 4387
Joined: Mon Dec 02, 2002 3:01 pm

Return to Web Application Server

Who is online

Users browsing this forum: No registered users and 8 guests