วัตถุราก XSL-FO
ความหมายและการใช้งาน
<Fo: ราก> วัตถุเป็นเอกสารราก XSL-FO (TOP) โหนด
<Fo: ราก> วัตถุ subclass เป็นแยกต่างหาก <สำหรับ: รูปแบบ-Master-SET> วัตถุ (ซึ่งยังคงมีทุกหน้าในระดับปริญญาโทเอกสาร [ต้นแบบ]) ซึ่งเป็นตัวเลือก <สำหรับ: ประกาศ> วัตถุและหนึ่งหรือมากกว่า <สำหรับ: หน้าลำดับ> วัตถุ
หมายเหตุ: เอกสาร XSL-FO สามารถมีหลาย <สำหรับ: หน้าลำดับ> วัตถุ (ตัวอย่าง: บทของเอกสารแต่ละคนสามารถนำมาใช้เป็นแบบสแตนด์อะโลน <สำหรับ: หน้าลำดับ> วัตถุ - จะช่วยให้การใช้งานของบทเฉพาะที่เฉพาะเจาะจง [ บท] เนื้อหาเช่น: ชื่อของบทก็สามารถอยู่ในส่วนหัวหรือท้ายกระดาษ)
ไวยากรณ์
<fo:root>
<!--
Children:layout-master-set,declarations?,
page-sequence+
-->
</fo:root>
<!--
Children:layout-master-set,declarations?,
page-sequence+
-->
</fo:root>
คุณสมบัติ
属性 |
---|
media-usage |
ตัวอย่างที่ 1
เอกสาร 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">
<!-- Page template goes here -->
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4">
<!-- Page content goes here -->
</fo:page-sequence>
</fo:root>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="A4">
<!-- Page template goes here -->
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4">
<!-- Page content goes here -->
</fo:page-sequence>
</fo:root>
คู่มืออ้างอิง XSL-FO