Permalink
Browse files

solved problem with two titles

  • Loading branch information...
Nuno Job
Nuno Job committed Apr 14, 2010
1 parent d827daf commit 7863a1c3c180fc839497ff04606281913f564255
Showing with 1 addition and 1 deletion.
  1. +1 −1 new.xqy
View
@@ -44,7 +44,7 @@ xdmp:set-response-content-type( "application/xhtml+xml" ),
let $salt := fn:substring(xdmp:md5(fn:string(fn:current-dateTime())), 1, 4)
let $title := xdmp:url-encode(xdmp:get-request-field('/article/title'))
let $dir := fn:replace(fn:tokenize(xs:string(fn:current-dateTime()), "T")[1], "-", "/")
let $path := fn:concat("/", $dir, "/", $title, "-", $salt ,".xml")
let $path := fn:concat("/", $dir, "/", $title[1], "-", $salt ,".xml")
let $xpaths := xdmp:get-request-field-names()
let $values := for $field in $xpaths
return xdmp:get-request-field($field)

0 comments on commit 7863a1c

Please sign in to comment.