xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r840440 - in /websites/staging/xmlgraphics/trunk/content: ./ fop/quickstartguide.html
Date Mon, 03 Dec 2012 05:02:12 GMT
Author: buildbot
Date: Mon Dec  3 05:02:11 2012
New Revision: 840440

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:02:11 2012
@@ -1 +1 @@
-1416347
+1416348

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:02:11
2012
@@ -402,30 +402,32 @@ $(document).ready(function () {
 </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>&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>
 </li>
+</ol>
+<p><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
+    &lt;xsl:stylesheet version="1.0"
+          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+          xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt;
+      &lt;xsl:output method="xml" indent="yes"/&gt;
+      &lt;xsl:template match="/"&gt;
+        &lt;fo:root&gt;
+          &lt;fo:layout-master-set&gt;
+            &lt;fo:simple-page-master master-name="A4-portrait"
+                  page-height="29.7cm" page-width="21.0cm" margin="2cm"&gt;
+              &lt;fo:region-body/&gt;
+            &lt;/fo:simple-page-master&gt;
+          &lt;/fo:layout-master-set&gt;
+          &lt;fo:page-sequence master-reference="A4-portrait"&gt;
+            &lt;fo:flow flow-name="xsl-region-body"&gt;
+              &lt;fo:block&gt;
+                Hello, &lt;xsl:value-of select="name"/&gt;!
+              &lt;/fo:block&gt;
+            &lt;/fo:flow&gt;
+          &lt;/fo:page-sequence&gt;
+        &lt;/fo:root&gt;
+      &lt;/xsl:template&gt;
+    &lt;/xsl:stylesheet&gt;</code></p>
+<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>
 </li>



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


Mime
View raw message