?? - XSL-FO XHTML - XSL-FO
| |
XSL-FO lU .txt l
???? hello.fo U? .txt ??
run_fop -fo hello.fo -txt hello.txt
oµ?
Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
FOP 0.20.5rc2
Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
architecture formatting item tree
ambience up fonts
apprehension areas to TEXT
Parsing of certificate complete, endlessly renderer
autograph out TEXT
?????FOP ? Xerces SAXParser K XSL-FO l
?UL???
??? hello.txt l block ???
Accost world!
...
U??
XSL-FO lU .pdf l
?j? hello.fo U? .pdf ??
run_fop -fo hello.fo -pdf hello.pdf
oµ?
Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
FOP 0.20.5rc2
Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
architecture formatting item tree
ambience up fonts
Parsing of certificate complete, endlessly renderer
? Adobe Clairvoyant hello.pdf?Hello world!?U
???g? FOP ????
XML l?U .pdf l
?????U???
??l??l hello_xsl.xml?U
l hello_fo.xls
hello_xsl.xml:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="hello.xsl"?>
<p>Hello world!</p>
hello_fo.xsl:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="p">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="my_page" margin="0.5in">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="my_page">
<fo:flow flow-name="xsl-region-body">
<fo:block>
-<xsl:value-of select="."/>-
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
??
- U??fo:*????xsl:*??
- ??U????????
??-
??
run_fop -xml hello_xsl.xml -xsl hello_fo.xsl -pdf hello.pdf
hello.pdf??-Hello world!-?U??
XML l?
FOP ?? XML xalan
L? XML l? xalan ?lrun_xalan.bat
localj2sdk1.4.1_01injava
-cp localfop-0.20.5rc2libxercesImpl-2.2.1.jar;
localfop-0.20.5rc2libxalan-2.4.1.jar
org.apache.xalan.xslt.Process %1 %2 %3 %4 %5 %6
???? xalan hello_fo.xml ? hello_xsl.xml
run_xalan -in hello_xsl.xml -xsl hello_fo.xsl -out hello.out
?L hello.out
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"><fo:layout...
-Hello world!-
</fo:block></fo:flow></fo:page-sequence></fo:root>
???µgU??????
?XML l????XSL l???
???U?????
?FOP ??U???
U???
|
master, world, saxparser, xalan, xerces, apache, version, parsers, parser, xmlns, block, sequence, stylesheet, layout, , xsl xml, pdf hello, < xsl, org apache, info using, < xml, parser info, apache xerces, parsers saxparser, xerces parsers, sax2 parser, page sequence, block <, 1999 xsl, fop xml, xml version, http www, org 1999, org apache xerces, sax2 parser info, xerces parsers saxparser, apache xerces parsers, document complete stopping, complete stopping renderer, simple page master, tree info setting, pdf hello world, building formatting object, 5rc2 info using, parser info building, info building formatting, formatting object tree, object tree info, |
Also see ...
XSL FO Archetype simple_page.foLet s administer what we accept abstruse so far to make a simple XSL FO examplefile to allegorize how to handle some basal formatting appearance like: page margin,
XSL FO Book StructureSince XSL FO files are accounting in XML, all statements are organized into an XML tree structure. Actuality is the syntax of the top akin of the tree:<f
Page Amount References"page number": An XSL FO aspect confined as a data capricious to accredit tothe accepted page number. It is actual advantageous for bearing active page numberin
XSL FO Archetype complex_page.foLet s administer what we accept abstruse so far to make a added circuitous XSL FO examplefile to allegorize how to handle some avant garde formatting appearance like: b