Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (48 sloc) 1.58 KB
xquery version "1.0-ml" ;
import module namespace h = "helpers" at "/lib/helpers.xqy" ;
xdmp:set-response-content-type( "application/xhtml+xml" ),
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title> MarkLogic Blog </title>
<link href="/css/screen.css" media="screen" rel="stylesheet" type="text/css"/>
</head>
<body id="home">
<div id="wrapper">
<div id="header">
<h1> <img border="0" alt="MarkLogic" src="/img/marklogic.png"/> Blog </h1>
</div>
<div id="nav">
<ul>
<li><a href="/">Home</a></li>
</ul>
</div>
<div id="content">
<div id="subcol">
<h2>Facets</h2>
</div>
<div id="maincol">
<div id="search">
<form name="form-search" action="search.xqy" id="form-search">
<input type="text" name="q" id="q" size="50"/>
<input type="submit" id="submitbtn" value="search"/>
</form>
</div><br/> {
let $uri := xdmp:get-request-field("uri")
let $a := doc(xdmp:url-encode($uri))
let $_ := xdmp:log(xdmp:quote($a))
let $_ := xdmp:log($uri)
return
(<h2>{fn:string($a//*:title)}</h2>,
<p>{fn:string($a//*:body)}</p>) }
<p>[ { h:link_to_index() } ]</p>
</div>
</div>
</div>
<div id="footer">
<p> Copyright © 2010 Mark Logic. All rights Reserved. </p>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.