XML to HTML page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jollysr
    New Member
    • Nov 2008
    • 6

    XML to HTML page

    Could someone please help me convert the following XML to HTML page?
    [code=xml]
    <?xml version="1.0" encoding="UTF-16"?>
    <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">
    <SOAP-ENV:Body>
    <ns1:doGoogleSe archResponse xmlns:ns1="urn: GoogleSearch" SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/">
    <return xsi:type="ns1:G oogleSearchResu lt">
    <directoryCateg ories xmlns:ns2="http ://schemas.xmlsoap .org/soap/encoding/" xsi:type="ns2:A rray" ns2:arrayType=" ns1:DirectoryCa tegory[2]">
    <item xsi:type="ns1:D irectoryCategor y">
    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableNam e>
    <specialEncodin g xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></specialEncoding >
    </item>
    <item xsi:type="ns1:D irectoryCategor y">
    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Shopping/Visual_Arts/Artists</fullViewableNam e>
    <specialEncodin g xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></specialEncoding >
    </item>
    </directoryCatego ries>
    <documentFilter ing xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:b oolean">false</documentFilteri ng>
    <endIndex xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:i nt">10</endIndex>
    <estimateIsExac t xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:b oolean">false</estimateIsExact >
    <estimatedTotal ResultsCount xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:i nt">281000</estimatedTotalR esultsCount>
    <resultElemen ts xmlns:ns3="http ://schemas.xmlsoap .org/soap/encoding/" xsi:type="ns3:A rray" ns3:arrayType=" ns1:ResultEleme nt[10]">
    <item xsi:type="ns1:R esultElement">
    <URL xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">http://www.mcescher.co m/</URL>
    <cachedSize xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">2k</cachedSize>
    <directoryCateg ory xsi:type="ns1:D irectoryCategor y">
    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableNam e>
    <specialEncodin g xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></specialEncoding >
    </directoryCatego ry>
    <directoryTit le xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">MC &lt;b&gt;Escher &lt;/b&gt;</directoryTitle>
    <hostName xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></hostName>
    <relatedInforma tionPresent xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:b oolean">true</relatedInformat ionPresent>
    <snippet xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></snippet>
    <summary xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Art, news, history, copyright and MC &lt;b&gt;Escher &lt;/b&gt; Foundation information.</summary>
    <title xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">MC.&lt;b &gt;Escher&l t;/b&gt;</title>
    </item>
    <item xsi:type="ns1:R esultElement">
    <URL xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">http://www.worldofesch er.com/</URL>
    <cachedSize xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">28k</cachedSize>
    <directoryCateg ory xsi:type="ns1:D irectoryCategor y">
    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableNam e>
    <specialEncodin g xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></specialEncoding >
    </directoryCatego ry>
    <directoryTit le xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">The world of &lt;b&gt;Escher &lt;/b&gt;</directoryTitle>
    <hostName xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></hostName>
    <relatedInforma tionPresent xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:b oolean">true</relatedInformat ionPresent>
    <snippet xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">The web site to explore the great MC &lt;b&gt;Escher &lt;/b&gt; artworks. Each image has&lt;br&gt; commentary and a zoom mode. &lt;b&gt;...&lt ;/b&gt; The place for everything &lt;b&gt;Escher &lt;/b&gt;. &lt;b&gt;...&lt ;/b&gt; </snippet>
    <summary xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">An online collection of the works of &lt;b&gt;Escher &lt;/b&gt;, along with an online store.</summary>
    <title xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">World of &lt;b&gt;Escher &lt;/b&gt; - Secure Shopping, Artwork Gallery, Tesselations &lt;b&gt;...&lt ;/b&gt;</title>
    </item>
    <item xsi:type="ns1:R esultElement">
    <URL xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">http://www.worldofesch er.com/gallery/</URL>
    <cachedSize xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">48k</cachedSize>
    <directoryCateg ory xsi:type="ns1:D irectoryCategor y">
    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Shopping/Visual_Arts/Artists</fullViewableNam e>
    <specialEncodin g xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></specialEncoding >
    </directoryCatego ry>
    <directoryTit le xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></directoryTitle>
    <hostName xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></hostName>
    <relatedInforma tionPresent xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:b oolean">true</relatedInformat ionPresent>
    <snippet xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">The web site to explore the great MC &lt;b&gt;Escher &lt;/b&gt; artworks. Each image has&lt;br&gt; commentary and a zoom mode. &lt;b&gt;...&lt ;/b&gt; The place for everything &lt;b&gt;Escher &lt;/b&gt;. &lt;b&gt;...&lt ;/b&gt; </snippet>
    <summary xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></summary>
    <title xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">World of &lt;b&gt;Escher &lt;/b&gt; - Product Gallery</title>
    </item>
    <item xsi:type="ns1:R esultElement">
    <URL xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">http://www.cs.unc.edu/~davemc/Pic/Escher/</URL>
    <cachedSize xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">2k</cachedSize>
    <directoryCateg ory xsi:type="ns1:D irectoryCategor y">
    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableNam e>
    <specialEncodin g xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></specialEncoding >
    </directoryCatego ry>
    <directoryTit le xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">&lt;b&gt ;Escher&lt;/b&gt; Art Collection</directoryTitle>
    <hostName xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></hostName>
    <relatedInforma tionPresent xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:b oolean">true</relatedInformat ionPresent>
    <snippet xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">The &lt;b&gt;Escher &lt;/b&gt; Web Page has moved. You should be redirected to the new page&lt;br&gt; in 15 second. If &lt;b&gt;...&lt ;/b&gt; link: http://home.comcast.ne t/~davemc0/&lt;b&gt;Escher &lt;/b&gt;. </snippet>
    <summary xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">A collection of images of artist's works.</summary>
    <title xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Redirect &lt;b&gt;Escher &lt;/b&gt; Web Page</title>
    </item>
    <item xsi:type="ns1:R esultElement">
    <URL xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">http://www.etropolis.c om/escher/</URL>
    <cachedSize xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">3k</cachedSize>
    <directoryCateg ory xsi:type="ns1:D irectoryCategor y">
    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Shopping/Visual_Arts/Artists</fullViewableNam e>
    <specialEncodin g xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></specialEncoding >
    </directoryCatego ry>
    <directoryTit le xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></directoryTitle>
    <hostName xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></hostName>
    <relatedInforma tionPresent xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:b oolean">true</relatedInformat ionPresent>
    <snippet xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">MC &lt;b&gt;escher &lt;/b&gt; about the artist... notes on art... All MC &lt;b&gt;Escher &lt;/b&gt; works (c) Cordon Art&lt;br&gt; BV-Baarn-the Netherlands. All rights reserved. Used by permission. &lt;b&gt;...&lt ;/b&gt; </snippet>
    <summary xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></summary>
    <title xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">MC &lt;b&gt;Escher &lt;/b&gt;</title>
    </item>
    <item xsi:type="ns1:R esultElement">
    <URL xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">http://www.mathacademy .com/pr/minitext/escher/index.asp</URL>
    <cachedSize xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">41k</cachedSize>
    <directoryCateg ory xsi:type="ns1:D irectoryCategor y">
    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableNam e>
    <specialEncodin g xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></specialEncoding >
    </directoryCatego ry>
    <directoryTit le xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Mathemat ical Art of MC &lt;b&gt;Escher &lt;/b&gt;</directoryTitle>
    <hostName xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></hostName>
    <relatedInforma tionPresent xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:b oolean">true</relatedInformat ionPresent>
    <snippet xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Article on the mathematical art of MC &lt;b&gt;Escher &lt;/b&gt;, with emphasis on inspiring&lt;br &gt; the student to see mathematics with fresh eyes. &lt;b&gt;...&lt ;/b&gt; MC &lt;b&gt;Escher &lt;/b&gt;. &lt;b&gt;...&lt ;/b&gt; </snippet>
    <summary xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">A detailed and liberally illustrated essay on the signifigance of &lt;b&gt;Escher 's&lt;/b&gt; artwork for the student...</summary>
    <title xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Mathemat ical Art of MC &lt;b&gt;Escher &lt;/b&gt; -- Platonic Realms MiniText</title>
    </item>
    <item xsi:type="ns1:R esultElement">
    <URL xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">http://escherdroste.ma th.leidenuniv.n l/</URL>
    <cachedSize xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">4k</cachedSize>
    <directoryCateg ory xsi:type="ns1:D irectoryCategor y">
    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableNam e>
    <specialEncodin g xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></specialEncoding >
    </directoryCatego ry>
    <directoryTit le xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Leiden University - &lt;b&gt;Escher &lt;/b&gt; and the Droste Effect</directoryTitle>
    <hostName xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></hostName>
    <relatedInforma tionPresent xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:b oolean">true</relatedInformat ionPresent>
    <snippet xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">&lt;b&gt ;Escher&lt;/b&gt; and the Droste effect. &lt;b&gt;...&lt ;/b&gt; Applying mathematics to &lt;b&gt;Escher &amp;#39;s&l t;/b&gt; Print Gallery. &lt;b&gt;...&lt ;/b&gt; All&lt;br&gt; MC &lt;b&gt;Escher &lt;/b&gt; works © Cordon Art-Baarn-the Netherlands. Used by permission. &lt;b&gt;...&lt ;/b&gt; </snippet>
    <summary xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Student project aiming to visualize the mathematical structure behind the 'Print Gallery'.</summary>
    <title xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">&lt;b&gt ;Escher&lt;/b&gt; and the Droste effect - Universiteit Leiden</title>
    </item>
    <item xsi:type="ns1:R esultElement">
    <URL xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">http://www-gap.dcs.st-and.ac.uk/~history/Mathematicians/Escher.html</URL>
    <cachedSize xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">32k</cachedSize>
    <directoryCateg ory xsi:type="ns1:D irectoryCategor y">
    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableNam e>
    <specialEncodin g xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></specialEncoding >
    </directoryCatego ry>
    <directoryTit le xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Maurits Cornelius &lt;b&gt;Escher &lt;/b&gt;: A biography</directoryTitle>
    <hostName xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></hostName>
    <relatedInforma tionPresent xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:b oolean">true</relatedInformat ionPresent>
    <snippet xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Maurits Cornelius &lt;b&gt;Escher &lt;/b&gt;. Born: 17 June 1898 in &lt;b&gt;...&lt ;/b&gt; Maurits &lt;b&gt;Escher &lt;/b&gt; was&lt;br&gt; always referred to by his parents as Mauk. He was brought up by &lt;b&gt;...&lt ;/b&gt; </snippet>
    <summary xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">A biography of MV &lt;b&gt;Escher &lt;/b&gt;.</summary>
    <title xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">&lt;b&gt ;Escher&lt;/b&gt;</title>
    </item>
    <item xsi:type="ns1:R esultElement">
    <URL xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">http://users.erols.com/ziring/escher.htm</URL>
    <cachedSize xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">14k</cachedSize>
    <directoryCateg ory xsi:type="ns1:D irectoryCategor y">
    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Shopping/Visual_Arts/Artists</fullViewableNam e>
    <specialEncodin g xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></specialEncoding >
    </directoryCatego ry>
    <directoryTit le xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></directoryTitle>
    <hostName xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></hostName>
    <relatedInforma tionPresent xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:b oolean">true</relatedInformat ionPresent>
    <snippet xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">z-logo. Welcome to the MC &lt;b&gt;Escher &lt;/b&gt; Pages! MC &lt;b&gt;Escher &lt;/b&gt; (1898-1972) is my favorite&lt;br& gt; graphic artist. He lived &lt;b&gt;...&lt ;/b&gt; entirety. &lt;b&gt;Escher &amp;#39;s&l t;/b&gt; Lifetime. Maurits &lt;b&gt;...&lt ;/b&gt; </snippet>
    <summary xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></summary>
    <title xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Neal&amp ;#39;s &lt;b&gt;Escher &lt;/b&gt; Page</title>
    </item>
    <item xsi:type="ns1:R esultElement">
    <URL xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">http://www.lipsons.pwp .blueyonder.co. uk/escher/ascending.html</URL>
    <cachedSize xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">8k</cachedSize>
    <directoryCateg ory xsi:type="ns1:D irectoryCategor y">
    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Shopping/Visual_Arts/Artists</fullViewableNam e>
    <specialEncodin g xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></specialEncoding >
    </directoryCatego ry>
    <directoryTit le xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></directoryTitle>
    <hostName xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></hostName>
    <relatedInforma tionPresent xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:b oolean">true</relatedInformat ionPresent>
    <snippet xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">&lt;b&gt ;Escher&amp;#39 ;s&lt;/b&gt; &amp;quot;Ascen ding and Descending&amp; quot; in LEGO®. Because &lt;b&gt;...&lt ;/b&gt; effect. The&lt;br&gt; original &lt;b&gt;Escher &lt;/b&gt; picture is shown on the right for comparison. &lt;b&gt;...&lt ;/b&gt; </snippet>
    <summary xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></summary>
    <title xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">&lt;b&gt ;Escher&amp;#39 ;s&lt;/b&gt; &amp;quot;Ascen ding and Descending&amp; quot; in LEGO</title>
    </item>
    </resultElements>
    <searchCommen ts xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></searchComments>
    <searchQuery xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Escher</searchQuery>
    <searchTime xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:d ouble">0.412154 </searchTime>
    <searchTips xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring"></searchTips>
    <startIndex xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:i nt">1</startIndex>
    </return>
    </ns1:doGoogleSea rchResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    [/code]
    Last edited by jkmyoung; Nov 17 '08, 06:19 PM. Reason: code tags
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    how do you want your html to look like? if you can answer that it should be easy to bend the xml content into html shape.

    regards

    Comment

    • jollysr
      New Member
      • Nov 2008
      • 6

      #3
      Originally posted by Dormilich
      how do you want your html to look like? if you can answer that it should be easy to bend the xml content into html shape.

      regards
      Thanks for your reply. I'm looking for an XLST which will transform the xml to a HTML page that should look like the search results from a google page.

      Thanks

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        that seems rather easy. your xml targets are (imho) <URL> (link, -> <a>), <snippet> (descr., -> <p>) and <title> (title, -> <h2>). just loop it over <item> and style it appropriately with CSS.

        if you're uncertain how to put that into code, I recommend a tutorial.

        regards

        Comment

        • jollysr
          New Member
          • Nov 2008
          • 6

          #5
          thank you. .. since I am very newbie, can you or anyone help me how to go about solving the question. Any input or answer in right direction is highly valued. I am reading the xml book to understand myself but that takes longer time than I wish to arrive at the solution.

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            first thing I recommend is a tutorial (see above) to get used to the language.

            now for the task. what I'd do is, create the desired html page as if it were static (so you can apply the layout and styles you want without any xslt hassle). then you look for repeating patterns.
            have a look at one pattern, how is it build? basicly you need to figure out which part of it will depend on the input xml and which form a kind of template. substitute the variable part with suited 'functions' of xslt, add some headers and finís.

            example:
            Code:
            <!DOCTYPE ...>
            <html>
              <head>
                <title>%%PAGE_TITLE%%</title>
            // meta, css, js definitions
              </head>
              <body>
                <h2>%%HEADING_1%%</h2>
                <p>%%some_text%%</p>
                <h2>%%HEADING_2%%</h2>
                <p>%%some_other_text%%</p>
              </body>
            </html>
            so you have two patterns, the repeating <h2>/<p> blocks and the html frame (frame in a sense of tag sequence). so template1 will have to produce the frame and template2 will have to be repeatedly called to make the content blocks (where %%text%% is taken from the xml). how to achieve this is covered in nearly every tutorial.

            if you stumble upon problems we will be glad helping you to solve the issues.

            regards

            Comment

            • jollysr
              New Member
              • Nov 2008
              • 6

              #7
              I successfully managed to get to a point to make my output HTML Page look decent (if not the best) but got stuck in few places:

              1) When I run my XSLT, the hyperlink for my URL does not show up
              2) The information in my XML is such that sometimes it has Summary information and sometimes Summary is not present for an item. I need something like an if statement where if summary is ‘null’ don’t print it’s value.

              1) Code where I try to use hyperlink for my URL but it does not print so: The output file shows the URL as a plain text and not a hyperlink...

              <br><xsl:attrib ute name="href">
              <xsl:value-of select="URL"/>
              </xsl:attribute>< xsl:value-of select="URL"/></br>

              2) I need an if statement here where it will select the value only if it is not empty:
              <br>Summary:<xs l:value-of select="summary " disable-output-escaping="yes"/></br>


              Could you please guide me on the above two points…

              regards,

              Comment

              • jollysr
                New Member
                • Nov 2008
                • 6

                #8
                Originally posted by jollysr
                I successfully managed to get to a point to make my output HTML Page look decent (if not the best) but got stuck in few places:

                1) When I run my XSLT, the hyperlink for my URL does not show up
                2) The information in my XML is such that sometimes it has Summary information and sometimes Summary is not present for an item. I need something like an if statement where if summary is ‘null’ don’t print it’s value.

                1) Code where I try to use hyperlink for my URL but it does not print so: The output file shows the URL as a plain text and not a hyperlink...

                <br><xsl:attrib ute name="href">
                <xsl:value-of select="URL"/>
                </xsl:attribute>< xsl:value-of select="URL"/></br>

                2) I need an if statement here where it will select the value only if it is not empty:
                <br>Summary:<xs l:value-of select="summary " disable-output-escaping="yes"/></br>


                Could you please guide me on the above two points…

                regards,
                I figured out an answer for 1) - it should be <a> and not <br> !!!!!!!!!!!!!!! !!!!!
                Could someone help me with 2) ?

                Comment

                • Dormilich
                  Recognized Expert Expert
                  • Aug 2008
                  • 8694

                  #9
                  if a element/value is empty its output by <xsl:value-of> is '' (empty string).

                  if you want to make a fallback (or something like that), use <xsl:if> or <xsl:choose>
                  Code:
                  <xsl:choose>
                    <xsl:when test="summary">
                      <xsl:value-of select="summary"/> 
                  // add more text if needed
                    </xsl:when>
                    <xsl:otherwise>
                      <xsl:text>Sorry, no summary found</xsl:text>
                    </xsl:otherwise>
                  </xsl:choose>

                  Comment

                  • jollysr
                    New Member
                    • Nov 2008
                    • 6

                    #10
                    Thanks a lot! That helped.
                    I'm stuck in another place and would really appreciate if some input is given.
                    This is my issue:
                    I need to group the result items according to the directory categories. Directory category name should precede the items that belong to that category.

                    Directory category:
                    <directoryCateg ories xmlns:ns2="http ://schemas.xmlsoap .org/soap/encoding/" xsi:type="ns2:A rray" ns2:arrayType=" ns1:DirectoryCa tegory[2]">
                    <item xsi:type="ns1:D irectoryCategor y">
                    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableNam e>

                    <item xsi:type="ns1:D irectoryCategor y">
                    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Shopping/Visual_Arts/Artists</fullViewableNam e>

                    The result item has fullViewableNam e, this needs to be grouped under the corresponding value it matches above.

                    <resultElemen ts xmlns:ns3="http ://schemas.xmlsoap .org/soap/encoding/" xsi:type="ns3:A rray" ns3:arrayType=" ns1:ResultEleme nt[10]">
                    <item xsi:type="ns1:R esultElement">
                    <URL xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">http://www.mcescher.co m/</URL>
                    <cachedSize xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">2k</cachedSize>
                    <directoryCateg ory xsi:type="ns1:D irectoryCategor y">
                    <fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableNam e>

                    Thanks,

                    Comment

                    • Dormilich
                      Recognized Expert Expert
                      • Aug 2008
                      • 8694

                      #11
                      for sorting you can use the <xsl:sort> instruction.

                      please pleas wrap your code in [code] tags, it's nearly unreadable now (esp. with all that more or less unnecessary namescpace definitions).

                      you may consider loop over category first and then over all items contained therein.

                      regards

                      Comment

                      Working...