Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'xquery'

1917681 - Get currency rate: xquery
  1. import module namespace http = "http://expath.org/ns/http-client";
  2.  
  3. declare namespace html = "http://www.w3.org/HTML/1998/html4";
  4.  
  5. declare function local:rate($devise1 as xs:string, $devise2 as xs:string) as xs:decimal{
  6.     let $dev1 := encode-for-uri($devise1)
  7.     let $dev2 := encode-for-uri($devise2)
  8.     let $response := http:send-request((),
  9.  
1651961 - Cefn Hoile: xml xquery cefn.com
  1. for $page in $allpages return c:writepage(c:href($page),$page/div[*], $defaultmenu) ,
  2. for $person in $allpersons order by $person/@title return c:writepage(c:href($person),(c:writelabel($person), <div><h2>Projects</h2>{c:writelist($allprojects[contributor/@refid=$person/@id])}</div>, $person/div[*]), $peoplemenu),
  3. for $project in $allprojects return c:writepage(c:href($project),(c:writelabel($project), <div><h2>Contributors</h2>{c:writelist($allpersons[@id=$project/contributor/@refid])}</div>,$project/div[*]), $projectmenu),
  4. c:writepage('list_persons.html', <div>{c:writelist($allpersons)}</div>, $peoplemenu),
  5. c:writepage('list_projects.html', (for $date in distinct-values($allprojects/@presented) order by xs:date($date) descending return <div><h2>{string($date)}</h2><p>{c:writelist($allprojects[@presented=$date])}</p></div>), $projectmenu)
1651951 - Cefn Hoile: xml gigox xquery widoh cefn.com
  1. <person id="cefnhoile" title="Cefn Hoile" desc="Inventor, Engineer, Troublemaker">
  2.     <div>
  3.         <h2>About Me</h2>
  4.         <p>I work in BT's Future Technologies Group, creating new forms of programming languages for non-technical people.</p>
  5.         <p>
  6.             Anyone local who likes my projects should join Ipswich's <a href="http://curiositycollective.org">Curiosity Collective</a> 
  7.             who experiment with playful technology for arts and sheer pleasure. That's the forum for cooking up a lot of the
  8.             more ridiculous ideas, as well as working out how to actually build them.
  9.  
worth-right
fantasy-obligation
fantasy-obligation