xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r841385 - in /websites/staging/xmlgraphics/trunk/content: ./ fop/quickstartguide.html
Date Mon, 10 Dec 2012 10:57:31 GMT
Author: buildbot
Date: Mon Dec 10 10:57:30 2012
New Revision: 841385

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 10 10:57:30 2012
@@ -1 +1 @@
-1419331
+1419338

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 10 10:57:30
2012
@@ -341,7 +341,7 @@ $(document).ready(function () {
         <div id="items">
         </div>
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a
href="/fop/">Fop</a></div> -->
-      	<div class="section-content"><h1 id="apachewzxhzdk0-fop-quick-start-guide">Apache&trade;
FOP: Quick Start Guide</h1>
+      	<div class="section-content"><h1 id="apachewzxhzdk2-fop-quick-start-guide">Apache&trade;
FOP: Quick Start Guide</h1>
 <p><subtitle>Everything you need to start using and appreciating Apache&trade;
FOP quickly.</subtitle></p>
 <h2 id="essentials">Apache&trade; FOP Essentials</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>
@@ -391,49 +391,59 @@ $(document).ready(function () {
 <p>Unpack the downloaded binary distribution to a directory of your choice (for example,
<code>C:\FOP</code> if you're on Windows). Let's call that directory <fop-home>.</p>
 </li>
 <li>
-<p>Get a command prompt in the <code>&lt;fop-home&gt;</code> directory
and write:<br></br>Windows: <code>fop -fo examples/fo/basic/readme.fo -awt</code>
<br></br>Unix: <code>./fop -fo examples/fo/basic/readme.fo -awt</code>
<br></br></p>
+<p>Get a command prompt in the <code>&lt;fop-home&gt;</code> directory
and write:</p>
 </li>
+</ol>
+<p>Windows: <code>fop -fo examples/fo/basic/readme.fo -awt</code></p>
+<p>Unix: <code>./fop -fo examples/fo/basic/readme.fo -awt</code></p>
+<ol>
 <li>
 <p>If all went well, this should open a window showing you a "readme"-style document.
This is just to verify that FOP runs correctly.</p>
 </li>
 <li>
-<p>Now, take your favorite XML editor and create a small XML file like the following.
Replace "Frank" with your own first name to make it a bit more personal and save it as <code>name.xml</code>:<br></br></p>
-<p>:::xml
-<name>Frank</name></p>
-</li>
-<li>
-<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>
-<p>:::xml
-&lt;?xml version="1.0" encoding="utf-8"?&gt;
-<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></p>
+<p>Now, take your favorite XML editor and create a small XML file like the following.
Replace "Frank" with your own first name to make it a bit more personal and save it as <code>name.xml</code>:</p>
+<div class="codehilite"><pre><span class="nt">&lt;name&gt;</span>Frank<span
class="nt">&lt;/name&gt;</span>
+</pre></div>
+
+
 </li>
 <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>
+<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>):</p>
+<div class="codehilite"><pre><span class="cp">&lt;?xml version=&quot;1.0&quot;
encoding=&quot;utf-8&quot;?&gt;</span>
+<span class="nt">&lt;xsl:stylesheet</span> <span class="na">version=</span><span
class="s">&quot;1.0&quot;</span>
+      <span class="na">xmlns:xsl=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Transform&quot;</span>
+      <span class="na">xmlns:fo=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span><span
class="nt">&gt;</span>
+  <span class="nt">&lt;xsl:output</span> <span class="na">method=</span><span
class="s">&quot;xml&quot;</span> <span class="na">indent=</span><span
class="s">&quot;yes&quot;</span><span class="nt">/&gt;</span>
+  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span
class="s">&quot;/&quot;</span><span class="nt">&gt;</span>
+    <span class="nt">&lt;fo:root&gt;</span>
+      <span class="nt">&lt;fo:layout-master-set&gt;</span>
+        <span class="nt">&lt;fo:simple-page-master</span> <span class="na">master-name=</span><span
class="s">&quot;A4-portrait&quot;</span>
+              <span class="na">page-height=</span><span class="s">&quot;29.7cm&quot;</span>
<span class="na">page-width=</span><span class="s">&quot;21.0cm&quot;</span>
<span class="na">margin=</span><span class="s">&quot;2cm&quot;</span><span
class="nt">&gt;</span>
+          <span class="nt">&lt;fo:region-body/&gt;</span>
+        <span class="nt">&lt;/fo:simple-page-master&gt;</span>
+      <span class="nt">&lt;/fo:layout-master-set&gt;</span>
+      <span class="nt">&lt;fo:page-sequence</span> <span class="na">master-reference=</span><span
class="s">&quot;A4-portrait&quot;</span><span class="nt">&gt;</span>
+        <span class="nt">&lt;fo:flow</span> <span class="na">flow-name=</span><span
class="s">&quot;xsl-region-body&quot;</span><span class="nt">&gt;</span>
+          <span class="nt">&lt;fo:block&gt;</span>
+            Hello, <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span
class="s">&quot;name&quot;</span><span class="nt">/&gt;</span>!
+          <span class="nt">&lt;/fo:block&gt;</span>
+        <span class="nt">&lt;/fo:flow&gt;</span>
+      <span class="nt">&lt;/fo:page-sequence&gt;</span>
+    <span class="nt">&lt;/fo:root&gt;</span>
+  <span class="nt">&lt;/xsl:template&gt;</span>
+<span class="nt">&lt;/xsl:stylesheet&gt;</span>
+</pre></div>
+
+
 </li>
 <li>
-<p>You've produced your first PDF with Apache FOP! Please open <code>name.pdf</code>
in your favorite PDF viewer.</p>
+<p>Finally, let's put the previous two steps together: Go back to the command prompt
and enter the following command:</p>
 </li>
+</ol>
+<p>Windows: <code>fop -xml name.xml -xsl name2fo.xsl -pdf name.pdf</code></p>
+<p>Unix: <code>./fop -xml name.xml -xsl name2fo.xsl -pdf name.pdf</code></p>
+<ol>
+<li>You've produced your first PDF with Apache FOP! Please open <code>name.pdf</code>
in your favorite PDF viewer.</li>
 </ol></div>
       </div>
       



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message