[Yanel-commits] rev 26117 -
public/yanel/trunk/src/contributions/resources/pdf/xslt
michi at wyona.com
michi at wyona.com
Wed Jul 18 15:24:52 CEST 2007
Author: michi
Date: 2007-07-18 15:24:52 +0200 (Wed, 18 Jul 2007)
New Revision: 26117
Modified:
public/yanel/trunk/src/contributions/resources/pdf/xslt/xml2fo.xsl
Log:
more pointers added
Modified: public/yanel/trunk/src/contributions/resources/pdf/xslt/xml2fo.xsl
===================================================================
--- public/yanel/trunk/src/contributions/resources/pdf/xslt/xml2fo.xsl 2007-07-18 13:11:45 UTC (rev 26116)
+++ public/yanel/trunk/src/contributions/resources/pdf/xslt/xml2fo.xsl 2007-07-18 13:24:52 UTC (rev 26117)
@@ -1,12 +1,14 @@
<?xml version="1.0"?>
+<!--
+Also see http://www.xml.com/pub/a/2001/01/17/xsl-fo/index.html
+-->
+
<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"/>
--->
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
@@ -17,17 +19,16 @@
page-width ="21cm"
margin-left ="2.5cm"
margin-right ="2.5cm">
- <fo:region-body margin-top="3cm"/>
+ <fo:region-body name="xsl-region-body" margin-top="3cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simple">
<fo:flow flow-name="xsl-region-body">
+ <!-- Also see http://www.w3schools.com/xslfo/xslfo_blocks.asp -->
+ <fo:block border-style="solid" border-width="1pt">My first XSL-FO PDF. Some dynamic content can be found below:</fo:block>
+
<xsl:apply-templates/>
- <fo:block>
-HUGO
- <xsl:apply-templates/>
- </fo:block>
</fo:flow>
</fo:page-sequence>
@@ -35,7 +36,7 @@
</xsl:template>
<xsl:template match="document">
- <fo:block>
+ <fo:block margin="2cm">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
More information about the Yanel-commits
mailing list