مخرجات XSL-FO
- الصفحة السابقة منطقة XSLFO
- الصفحة التالية تدفق XSLFO
XSL-FO defines output within the <fo:flow> element.
XSL-FO Page, Flow, and Block
The 'block' content will 'flow' into the 'page' and then be output to the medium.
XSL-FO outputs are usually nested within <fo:block> elements, <fo:block> elements are nested within <fo:flow> elements, and <fo:flow> elements are nested within <fo:page-sequence> elements:
<fo:page-sequence> <fo:flow flow-name="xsl-region-body"> <fo:block> <!-- Output goes here --> </fo:block> </fo:flow> </fo:page-sequence>
مثال XSL-FO
دعونا نرى مثالاً حقيقياً من XSL-FO:
<?xml version="1.0" encoding="ISO-8859-1"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="A4"> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="A4"> <fo:flow flow-name="xsl-region-body"> <fo:block>Hello CodeW3C.com</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
مخرجات الكود أعلاه تشبه هذا:

- الصفحة السابقة منطقة XSLFO
- الصفحة التالية تدفق XSLFO