Last active
December 5, 2017 18:19
-
-
Save WaxCylinderRevival/2f3891e2135312d6b966334d5b1ee82a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.1"; | |
declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization"; | |
declare option output:method "html5"; | |
declare option output:media-type "text/html"; | |
import module namespace request = "http://exist-db.org/xquery/request"; | |
let $addressee := request:get-parameter("addressee", "World") | |
let $dog := request:get-parameter("dog", "Daisy") | |
let $opinion := request:get-parameter("opinion", "Dogs rule; cats drool.") | |
return | |
(: https://getbootstrap.com/docs/3.3/getting-started/ :) | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
<title>Test Form</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"/> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"/> | |
<!-- Latest compiled and minified JavaScript --> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"/> | |
</head> | |
<body> | |
<div class="container"> | |
<h1>Test Form</h1> | |
<p>Please enter your information below.</p> | |
<form method="get"> | |
Your Name:<lb/> | |
<input type="text" name="addressee" class="form-control"/> | |
Your Dog's Name:<lb/> | |
<input type="text" name="dog" class="form-control"/> | |
What's your opinion on the cats versus dogs debate?<lb/> | |
<input type="textarea" name="opinion" class="form-control"/> | |
<button type="submit" class="btn btn-default">Submit</button> | |
</form> | |
<p>Your name is { $addressee } and your dog's name is { $dog }. { $opinion }</p> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adapted from @joewiz's tutorial: https://gist.github.com/joewiz/69e767a20d32a22ffa37da95d75457b7