File: xsl-gobject.xml

package info (click to toggle)
xmlroff 0.6.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 36,456 kB
  • sloc: ansic: 178,247; xml: 109,155; sh: 8,973; makefile: 1,331; perl: 30
file content (72 lines) | stat: -rw-r--r-- 2,734 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<section id="xsl-gobject">
<sectioninfo>
<abstract><para>XSL defines formatting objects and their
properties. GObject -- the GLib Object System -- is an object oriented
framework for C for where you define objects and their properties.
This section is a summary of how formatting objects and their
properties map to GOjects and their properties.</para></abstract>
</sectioninfo>
<title>Relating XSL to GObjects</title>

<section id="foobject">
<title>FoObject, FoNode</title>

<para>The libfo object hierarchy starts at FoObject, which is an
extension of GObject that adds some common debugging and logging
functions.</para>

<para>FoNode is a subtype of FoObject that has additional properties
and functions for making trees of FoNode objects.  FoNode is the
parent type of both FoFo and FoArea, since XSL operates in terms of FO
and area trees.</para>

</section>

<section id="fo-gobject">
<title>Formatting Object --> FoFo</title>

<para>Each XSL formatting object maps to a subtype of the FoFo GObject object type.</para>

<para>Each XSL property of an XSL formatting object maps to a property of the corresponding FoFo subtype.</para>

<para>Functions that return or use formatting object generally use FoFo objects rather than subtypes.</para>

<para>The GObject object type name is "Fo" and the camel-case form of the XSL formatting object name.  For example, fo:page-sequence maps to FoPageSequence.</para>

</section>

<section id="datatype-gobject">
<title>Formatting Object property --> FoProperty</title>

<para>Each XSL property maps to a subtype of the FoProperty GObject object type.</para>

<para>An FoProperty has a value, which is a FoDatatype.</para>

<para>Functions that return or use XSL properties generally use FoProperty objects rather than specific subtypes.</para>

<para>The GObject object type name is "FoProperty" and the camel-case form of the XSL property name.  For example, writing-mode maps to FoPropertyWritingMode.</para>

</section>

<section id="datatype-gobject">
<title>XSL datatype --> FoDatatype</title>

<para>Each XSL dataype maps to a subtype of the FoDatatype GObject object type.</para>

<para>An FoDatatype has a value.  The value is set when the FoDatatype is created, and it cannot be changed.</para>

<para>Functions that return or use XSL datatypes generally use FoDatatype objects rather than specific subtypes.</para>

<para>The GObject object type name is the camel-case form of the XSL datatype name.  For example, color maps to FoColor.</para>

</section>

<section id="other-fo-objects">
<title>Other Objects</title>

<para>Other parts of libfo, including FoXslFormatter, are implemented
as subtypes of FoObject where it makes sense to do so.</para>

</section>

</section>