Location: PHPKode > projects > Concentr Xml Tools > concentre-0.2.1-beta/doc/examples/yahoo_search.html
<!DOCTYPE
  html PUBLIC "-//W3C//DTD XHTML 1.0//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:form="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:concentre="http://xforms.zensoluciones.com" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xml:lang="en">
  <head>
    <title>All Controls</title>

		<link rel="stylesheet" type="text/css" href="../../share/concentre/css/xforms.css" />
		<link rel="stylesheet" type="text/css" href="css/screen.css" />
		<link rel="stylesheet" type="text/css" href="css/yahoo.css" />
		<script type="text/javascript" src="../../share/concentre/concentre.js"></script>
    <script type="text/javascript" src="getElementsBySelector.js"></script>
    <script type="text/javascript" src="syntaxHighlight.js"></script>

		<style type="text/css">
			code.html span.tag {
			  color: blue;
			}
			code.html span.attribute {
			  color: red;
			}
			code.html span.value {
			  color: green;
			}		

		</style>
		    
    <form:model id="model1" >
      <form:instance>
      	<yahoo xmlns="">
      			<query>murcia</query>
      	</yahoo>
	    </form:instance>
      <form:submission id="submission1" action="/proxy/ws/yahoo" method="get" replace="innerhtml" innerhtml="result" concentre:xsl-stylesheet-output-adapter="yahoo_search.xsl" />
    </form:model>
  </head>

  <body onload="syntaxHighlight();">
   <div id="page">
   	<div id="header">
   		<h1>Concentré showcase</h1>
  	</div>	
  	<div id="main">
  		
  		<p class="comment">
  			This example illustrate Web Service integration using xsl output adapter on submission result and innerHTML div content replacement.<br/><br/>
  			Take a look to <a href="http://developer.yahoo.com/" rel="external" >Yahoo! developper network</a>
  		</p>
  		
  		<pre>
  		<code class="html"><![CDATA[
    &lt;form:model id=&quot;model1&quot; &gt;
      &lt;form:instance&gt;
      	&lt;yahoo xmlns=&quot;&quot;&gt;
      			&lt;query&gt;murcia&lt;/query&gt;
      	&lt;/yahoo&gt;
	    &lt;/form:instance&gt;
      &lt;form:submission id=&quot;submission1&quot; action=&quot;/proxy/ws/yahoo&quot; method=&quot;get&quot; replace=&quot;innerhtml&quot; innerhtml=&quot;result&quot; concentre:xsl-stylesheet-output-adapter=&quot;yahoo_search.xsl&quot; /&gt;
    &lt;/form:model&gt;
]]></code>
			</pre>
			
      <form:input ref="query">
        <form:label>Keywords:</form:label>
      </form:input>
     	
     <form:submit submission="submission1" >
        <form:label>Search Yahoo!</form:label>
      </form:submit>
    
    	
    		
    	<br/>  
      <div id="result">
    	</div>
    </div>
   	<div id="footer">
   		    	<form:output value="concentre:get-revision()" />
  	</div>	
  </div>
  	
  </body>
</html>
Return current item: Concentr Xml Tools