<jsp:root 
	version="2.0" 
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:portlet="http://java.sun.com/portlet"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"    
	xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"     
>
	<jsp:directive.page session="true"/>
	<jsp:directive.page isELIgnored="false"/>
	<fmt:setLocale value=""/>
	<fmt:setBundle basename="samples.webcenter.portlets.wiki.WikiPortlet"/>	
	<portlet:defineObjects/>
	<div class="wiki-search-results">
		<h3>
			<fmt:message key="wiki.search.results.msg">
				<fmt:param value="${wiki_search_text}"/>		
			</fmt:message>
		</h3>
		<c:set var="text" value="${wiki_search_text}" scope="request"/>
		<c:set var="emText" value="&lt;em&gt;${text}&lt;/em/&gt;" scope="request"/>
		<c:set var="strongText" value="&lt;strong&gt;${text}&lt;/strong/&gt;" scope="request"/>
		<c:forEach items="${search_results}" var="search_result" varStatus="status">
			<div class="wiki-body">
				<div class="wiki-page">
					<portlet:actionURL var="wikiEntryLink">
						<portlet:param name="wiki_page" value="${search_result.pageName}"/>					
					</portlet:actionURL>
					<h3 class="wiki-page-name">
						<c:set var="title" value="${fn:replace(search_result.pageName, text, emText)}" scope="request"/>
						<a href="${wikiEntryLink}" title="Show ${search_result.pageName}">${title}</a>
					</h3>
					<div class="wiki-page-content">
						<c:set var="fragment" value="${fn:replace(search_result.fragment, text, strongText)}" scope="request"/>
						${fragment}
					</div>
					<div class="wiki-page-info">
						<fmt:message key="wiki.search.results.msg.info">
							<fmt:param value="${search_result.author}"></fmt:param>
							<fmt:param value="${search_result.lastUpdate}"></fmt:param>
						</fmt:message>					
					</div>
				</div>
			</div>
		</c:forEach>
	</div>
</jsp:root>