Created
May 23, 2017 20:24
-
-
Save ableasdale/285098103f960e03eec9ba57dacf8d29 to your computer and use it in GitHub Desktop.
MarkLogic: Example payload creation (no GZip)
This file contains hidden or 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 "1.0-ml"; | |
declare function local:create-html-payload() { | |
xdmp:set-response-content-type("text/html"), | |
for $a in (1 to 100) | |
return element p {"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl."} | |
}; | |
local:create-html-payload() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment