~zorba-coders/zorba/archive-module

« back to all changes in this revision

Viewing changes to test/Queries/extract_07.xq

  • Committer: Zorba Jenkins
  • Author(s): Luis Rodriguez Gonzalez, chillery+launchpad at lambda
  • Date: 2013-07-30 02:47:21 UTC
  • mfrom: (50.2.7 archive-module)
  • Revision ID: jenkins@lambda.nu-20130730024721-uqtxg1afijff83sg
JSONiqfication for Archive Module Done.
Approved: Luis Rodriguez Gonzalez, Chris Hillery

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import module namespace a = "http://www.zorba-xquery.com/modules/archive";
 
1
import module namespace a = "http://zorba.io/modules/archive";
2
2
import module namespace f = "http://expath.org/ns/file";
3
3
 
4
4
let $f := f:read-binary(fn:resolve-uri("linear-algebra-20120306.epub"))
5
 
for $a in a:entries($f)[position() > 2 and  position() < 5]
 
5
for $a in a:entries($f)("name")[position() > 2 and  position() < 5]
6
6
return <text>{a:extract-binary($f, $a)}</text>