home *** CD-ROM | disk | FTP | other *** search
/ XML Bible (2nd Edition) / XML_Bible_Second_Edition_Hungry_Minds_2001.iso / mac / source / 18 / 18-7.xsl < prev    next >
Extensible Markup Language  |  2001-02-06  |  2KB  |  56 lines

  1. <?xml version="1.0"?>
  2. <xsl:stylesheet version="1.0"
  3.   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4.   xmlns:fo="http://www.w3.org/1999/XSL/Format">
  5.  
  6.   <xsl:template match="/">
  7.     <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  8.  
  9.       <fo:layout-master-set>
  10.  
  11.         <fo:simple-page-master master-name="A4"
  12.            page-width="297mm"  page-height="210mm"
  13.            margin-top="0.5in"  margin-bottom="0.5in"
  14.            margin-left="0.5in" margin-right="0.5in">
  15.           <fo:region-before extent="3.0in"/>
  16.           <fo:region-body   margin-top="1.0in"
  17.                             margin-bottom="1.0in"/>
  18.           <fo:region-after  extent="1.0in"/>
  19.         </fo:simple-page-master>
  20.  
  21.       </fo:layout-master-set>
  22.  
  23.       <fo:page-sequence master-name="A4"
  24.         initial-page-number="1" language="en" country="us">
  25.  
  26.         <fo:static-content flow-name="xsl-region-before">
  27.           <fo:block>
  28.             The Periodic Table
  29.             <fo:external-graphic
  30.               src="http://www.ibiblio.org/xml/images/atom.jpg"/>
  31.           </fo:block>
  32.         </fo:static-content>
  33.  
  34.         <fo:static-content flow-name="xsl-region-after">
  35.           <fo:block>
  36.             <fo:leader leader-pattern="rule"
  37.                        leader-length="18cm"/>
  38.           </fo:block>
  39.           <fo:block>p. <fo:page-number/></fo:block>
  40.         </fo:static-content>
  41.  
  42.         <fo:flow flow-name="xsl-region-body">
  43.           <xsl:apply-templates select="//ATOM"/>
  44.         </fo:flow>
  45.  
  46.       </fo:page-sequence>
  47.  
  48.     </fo:root>
  49.   </xsl:template>
  50.  
  51.   <xsl:template match="ATOM">
  52.     <fo:block><xsl:value-of select="NAME"/></fo:block>
  53.   </xsl:template>
  54.  
  55. </xsl:stylesheet>
  56.