Mercurial > hg > mpdl-group
comparison software/eXist/webapp/mpdl/_stuff/testDev/testXslFO.xql @ 7:5589d865af7a
Erstellung XQL/XSL Applikation
author | Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 08 Feb 2011 15:16:46 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
6:2396a569e446 | 7:5589d865af7a |
---|---|
1 xquery version "1.0"; | |
2 declare namespace fo="http://www.w3.org/1999/XSL/Format"; | |
3 declare namespace xslfo="http://exist-db.org/xquery/xslfo"; | |
4 | |
5 let $fo := | |
6 <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> | |
7 <fo:layout-master-set> | |
8 <fo:simple-page-master master-name="my-page"> | |
9 <fo:region-body margin="1in"/> | |
10 </fo:simple-page-master> | |
11 </fo:layout-master-set> | |
12 <fo:page-sequence master-reference="my-page"> | |
13 <fo:flow flow-name="xsl-region-body"> | |
14 <fo:block>Hello World!</fo:block> | |
15 </fo:flow> | |
16 </fo:page-sequence> | |
17 </fo:root> | |
18 | |
19 let $pdf := xslfo:render($fo, "application/pdf", ()) | |
20 | |
21 return response:stream-binary($pdf, "application/pdf", "test-page-1.pdf") |