mirror of
https://github.com/apache/xmlgraphics-fop.git
synced 2024-08-28 17:57:03 +02:00
![Glen Mazza](/assets/img/avatar_default.png)
2. Modified several of our sample and test FO files to be compliant with the XSL spec with respect to the change above. 3. @todo's added to FO's still missing validateChildNode() 4. New FONode missingPropertyError() method created, for the major cases where missing properties should halt processing. 5. Various cleanup in our layout-master-set and region classes, including the removal of error checks that are no longer needed due to validateChildNode() being implemented. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197889 13f79535-47bb-0310-9956-ffa450edef68
245 lines
13 KiB
XML
245 lines
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
|
|
|
<!-- defines the layout master -->
|
|
<fo:layout-master-set>
|
|
<fo:simple-page-master master-name="first"
|
|
page-height="29.7cm" page-width="21cm"
|
|
margin-top="1cm"
|
|
margin-bottom="2cm"
|
|
margin-left="2.5cm"
|
|
margin-right="2.5cm">
|
|
<fo:region-body margin-top="3cm"/>
|
|
<fo:region-before extent="3cm"/>
|
|
<fo:region-after extent="1.5cm"/>
|
|
</fo:simple-page-master>
|
|
</fo:layout-master-set>
|
|
|
|
<!-- starts actual layout -->
|
|
<fo:page-sequence master-reference="first">
|
|
|
|
<!-- Inserts a header with the page number -->
|
|
<fo:static-content flow-name="xsl-region-before">
|
|
<fo:block text-align="end" font-size="10pt" font-family="serif" line-height="14pt">
|
|
XSL-FO Example: simple list - p. <fo:page-number/>
|
|
</fo:block>
|
|
</fo:static-content>
|
|
|
|
<fo:flow flow-name="xsl-region-body">
|
|
|
|
<!-- title -->
|
|
<fo:block font-size="14pt"
|
|
font-family="sans-serif"
|
|
line-height="18pt"
|
|
space-before.optimum="3pt"
|
|
space-after.optimum="3pt"
|
|
font-weight="bold"
|
|
start-indent="15pt">
|
|
Validity Constraint: Standalone Document Declaration
|
|
</fo:block>
|
|
|
|
<!-- normal text -->
|
|
<fo:block font-size="12pt"
|
|
font-family="sans-serif"
|
|
line-height="15pt"
|
|
space-after.optimum="3pt" >
|
|
The standalone document declaration must have the value "no" if
|
|
any external markup declarations contain declarations of:
|
|
</fo:block>
|
|
|
|
<!-- list -->
|
|
<fo:list-block>
|
|
|
|
<!-- list item -->
|
|
<fo:list-item>
|
|
<!-- insert a bullet -->
|
|
<fo:list-item-label end-indent="label-end()">
|
|
<fo:block>•</fo:block>
|
|
</fo:list-item-label>
|
|
<!-- list text -->
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:block>
|
|
attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
|
|
</fo:block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
|
|
<!-- list item -->
|
|
<fo:list-item>
|
|
<!-- insert a bullet -->
|
|
<fo:list-item-label end-indent="label-end()">
|
|
<fo:block>•</fo:block>
|
|
</fo:list-item-label>
|
|
<!-- list text -->
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:block>
|
|
entities (other than amp, lt, gt, apos, quot), if references to those entities appear in the document, or
|
|
</fo:block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
|
|
<!-- list entry -->
|
|
<fo:list-item>
|
|
<!-- insert a bullet -->
|
|
<fo:list-item-label end-indent="label-end()">
|
|
<fo:block>•</fo:block>
|
|
</fo:list-item-label>
|
|
<!-- list text -->
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:block>
|
|
attributes with values subject to normalization, where the attribute appears in the document with a value which will
|
|
</fo:block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
|
|
<!-- list entry -->
|
|
<fo:list-item>
|
|
<!-- insert a bullet -->
|
|
<fo:list-item-label end-indent="label-end()">
|
|
<fo:block>•</fo:block>
|
|
</fo:list-item-label>
|
|
<!-- list text -->
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:block>
|
|
change as a result of normalization, or
|
|
</fo:block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
|
|
<!-- list entry -->
|
|
<fo:list-item>
|
|
<!-- insert a bullet -->
|
|
<fo:list-item-label end-indent="label-end()">
|
|
<fo:block>•</fo:block>
|
|
</fo:list-item-label>
|
|
<!-- list text -->
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:block>
|
|
|
|
element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white spaceadsfadsfsssssssssssssss thin any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white spaceadsfadsfssssssssthin any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white spaceadsfadsfssssssssthin any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white spaceadsfadsfssssssssthin any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white spaceadsfadsfssssssss
|
|
element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. elementtance of those types. sfg sfd gdg d d
|
|
</fo:block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
|
|
|
|
|
|
|
|
<fo:list-item>
|
|
<fo:list-item-label end-indent="label-end()"> <fo:block/></fo:list-item-label>
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:list-block>
|
|
|
|
<!-- list item -->
|
|
<fo:list-item>
|
|
<!-- insert a bullet -->
|
|
<fo:list-item-label end-indent="label-end()">
|
|
<fo:block>•</fo:block>
|
|
</fo:list-item-label>
|
|
<!-- list text -->
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:block>
|
|
attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
|
|
</fo:block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
<!-- list item -->
|
|
<fo:list-item>
|
|
<!-- insert a bullet -->
|
|
<fo:list-item-label end-indent="label-end()">
|
|
<fo:block>•</fo:block>
|
|
</fo:list-item-label>
|
|
<!-- list text -->
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:block>
|
|
attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
|
|
</fo:block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
<!-- list item -->
|
|
<fo:list-item>
|
|
<!-- insert a bullet -->
|
|
<fo:list-item-label end-indent="label-end()">
|
|
<fo:block>•</fo:block>
|
|
</fo:list-item-label>
|
|
<!-- list text -->
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:block>
|
|
attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
|
|
</fo:block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
<!-- list item -->
|
|
<fo:list-item>
|
|
<!-- insert a bullet -->
|
|
<fo:list-item-label end-indent="label-end()">
|
|
<fo:block>•</fo:block>
|
|
</fo:list-item-label>
|
|
<!-- list text -->
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:block>
|
|
attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
|
|
</fo:block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
</fo:list-block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
|
|
|
|
<!-- list entry -->
|
|
<fo:list-item>
|
|
<!-- insert a bullet -->
|
|
<fo:list-item-label end-indent="label-end()">
|
|
<fo:block>•</fo:block>
|
|
</fo:list-item-label>
|
|
<!-- list text -->
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:block>
|
|
element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. elementtance of those types.
|
|
</fo:block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
<!-- list entry -->
|
|
<fo:list-item>
|
|
<!-- insert a bullet -->
|
|
<fo:list-item-label end-indent="label-end()">
|
|
<fo:block>•</fo:block>
|
|
</fo:list-item-label>
|
|
<!-- list text -->
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:block>
|
|
element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. elementtance of those types.
|
|
</fo:block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
<!-- list entry -->
|
|
<fo:list-item>
|
|
<!-- insert a bullet -->
|
|
<fo:list-item-label end-indent="label-end()">
|
|
<fo:block>•</fo:block>
|
|
</fo:list-item-label>
|
|
<!-- list text -->
|
|
<fo:list-item-body start-indent="body-start()">
|
|
<fo:block>
|
|
element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. element types with element content, if white space occurs directly within any instance of those types. elementtance of those types.
|
|
</fo:block>
|
|
</fo:list-item-body>
|
|
</fo:list-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</fo:list-block>
|
|
|
|
|
|
</fo:flow>
|
|
</fo:page-sequence>
|
|
</fo:root>
|
|
|
|
|