<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:template match="/"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="A4" page-width="297mm" page-height="210mm" margin-top="0.5in" margin-bottom="0.5in" margin-left="0.5in" margin-right="0.5in"> <fo:region-before extent="1.0in"/> <fo:region-body margin-top="1.0in" margin-bottom="1.0in"/> <fo:region-after extent="1.0in"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="A4" initial-page-number="1"> <fo:static-content flow-name="xsl-region-before"> <fo:block>The Periodic Table</fo:block> </fo:static-content> <fo:static-content flow-name="xsl-region-after"> <fo:block>p. <fo:page-number/></fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <xsl:apply-templates select="//ATOM"/> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> <xsl:template match="ATOM"> <fo:block><xsl:value-of select="NAME"/></fo:block> </xsl:template> </xsl:stylesheet>