Hi everyone,

I am a complete novice and need to write a pseudo-code for a query (photo.xql):

xquery version "1.0";

(: Generate a photo page :)

declare namespace request="http://exist-db.org/xquery/request";
declare namespace transform = "http://exist-db.org/xquery/transform";
import module namespace history = "http:// localhost/history" at "history.xqm";

let $id := request : request-parameter ('id', '1')
let $photo := history:photoDate ($id)
let $stylesheet := doc(concat($history:CODE, 'photo.xsl'))

return
transform:transform ($photo, $stylesheet, () )

Any help with this would be greatly appricated, thi sis all I have been given and it means nothing to me at all!

Thank you

Member Avatar for iamthwee

>and it means nothing to me at all!

+1

Hi everyone,

I am a complete novice and need to write a pseudo-code for a query (photo.xql):

xquery version "1.0";

(: Generate a photo page :)

declare namespace request="http://exist-db.org/xquery/request";
declare namespace transform = "http://exist-db.org/xquery/transform";
import module namespace history = "http:// localhost/history" at "history.xqm";

let $id := request : request-parameter ('id', '1')
let $photo := history:photoDate ($id)
let $stylesheet := doc(concat($history:CODE, 'photo.xsl'))

return
transform:transform ($photo, $stylesheet, () )

Any help with this would be greatly appricated, thi sis all I have been given and it means nothing to me at all!

Thank you

Doesn't mean anything to me either, but it doesn't look like C++. You'll probably want to post in a different forum.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.