You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by bu...@apache.org on 2012/12/03 06:03:16 UTC
svn commit: r840442 - in /websites/staging/xmlgraphics/trunk/content: ./
fop/quickstartguide.html
Author: buildbot
Date: Mon Dec 3 05:03:15 2012
New Revision: 840442
Log:
Staging update by buildbot for xmlgraphics
Modified:
websites/staging/xmlgraphics/trunk/content/ (props changed)
websites/staging/xmlgraphics/trunk/content/fop/quickstartguide.html
Propchange: websites/staging/xmlgraphics/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Dec 3 05:03:15 2012
@@ -1 +1 @@
-1416348
+1416349
Modified: websites/staging/xmlgraphics/trunk/content/fop/quickstartguide.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/quickstartguide.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/quickstartguide.html Mon Dec 3 05:03:15 2012
@@ -341,9 +341,9 @@ $(document).ready(function () {
<div id="items">
</div>
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a></div> -->
- <div class="section-content"><h1 id="apachewzxhzdk0-fop-quick-start-guide">Apache™ FOP: Quick Start Guide</h1>
+ <div class="section-content"><h1 id="apachewzxhzdk1-fop-quick-start-guide">Apache™ FOP: Quick Start Guide</h1>
<p><subtitle>Everything you need to start using and appreciating Apache™ FOP quickly.</subtitle></p>
-<h2 id="apachewzxhzdk6-fop-essentials-wzxhzdk4wzxhzdk5">Apache™ FOP Essentials <a id="essentials"></a></h2>
+<h2 id="apachewzxhzdk7-fop-essentials-wzxhzdk5wzxhzdk6">Apache™ FOP Essentials <a id="essentials"></a></h2>
<p>The goal of this <strong>Quick Start Guide</strong> is to help novice users get Apache FOP up and running quickly. Typically, you'll need to:</p>
<ol>
<li>
@@ -384,7 +384,7 @@ $(document).ready(function () {
</li>
</ul>
<p>Once you've familiarized yourself with the basics, you can get more detailed information, in the detailed FOP <a href="1.0/index.html">product documentation</a> .</p>
-<h2 id="hello-world-with-fop-wzxhzdk7wzxhzdk8">Hello World with FOP <a id="hello-world"></a></h2>
+<h2 id="hello-world-with-fop-wzxhzdk8wzxhzdk9">Hello World with FOP <a id="hello-world"></a></h2>
<p>This section walks you through a "Hello World!" page with Apache FOP. We're assuming you download the binary distribution and that you have a Java Runtime Environment (version 1.4 or later) installed.</p>
<ol>
<li>
@@ -404,29 +404,32 @@ $(document).ready(function () {
<p>To produce a PDF file from this XML file, we need an XSLT stylesheet that converts the XML to XSL-FO. This is the first step in the processing chain. The second step will be done by FOP when it reads the generated XSL-FO document and formats it to a PDF document. You can copy the following minimal XSLT stylesheet, which takes your first name and produces a "Hello World!"-style document (save it as <code>name2fo.xsl</code> ):<br></br></p>
</li>
</ol>
-<p><code><?xml version="1.0" encoding="utf-8"?>
- <xsl:stylesheet version="1.0"
+<pre>
+ <?xml version="1.0" encoding="utf-8"?>
+ <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:output method="xml" indent="yes"/>
- <xsl:template match="/">
- <fo:root>
- <fo:layout-master-set>
- <fo:simple-page-master master-name="A4-portrait"
- page-height="29.7cm" page-width="21.0cm" margin="2cm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="A4-portrait">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- Hello, <xsl:value-of select="name"/>!
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </xsl:template>
- </xsl:stylesheet></code></p>
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <xsl:output method="xml" indent="yes"/>
+ <xsl:template match="/">
+ <fo:root>
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="A4-portrait"
+ page-height="29.7cm" page-width="21.0cm" margin="2cm">
+ <fo:region-body/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="A4-portrait">
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block>
+ Hello, <xsl:value-of select="name"/>!
+ </fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
+ </xsl:template>
+ </xsl:stylesheet>
+</pre>
+
<ol>
<li>
<p>Finally, let's put the previous two steps together: Go back to the command prompt and enter the following command:<br></br>Windows: <code>fop -xml name.xml -xsl name2fo.xsl -pdf name.pdf</code> <br></br>Unix: <code>./fop -xml name.xml -xsl name2fo.xsl -pdf name.pdf</code> <br></br></p>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org