W3C home > Mailing lists > Public > www-xsl-fo@w3.org > December 2003

Re: Urgent Help needed in XSL Path ...Please...

From: Girish Kanmas <girishrk@india.ti.com>
Date: Thu, 4 Dec 2003 15:23:42 +0530
To: <www-xsl-fo@w3.org>
Message-ID: <001e01c3ba4c$80c9de60$2653579d@x00nkulk>


=============test.xml==========================
<chapter>
	<left>Left1</left>
	<center>Center</center>
	<right>Right</right>

	<left>Left1</left>
	<center>Center</center>
	<right>Right</right>
</chapter>

=============test.xsl==========================
<xsl:template match="chapter">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
       	<fo:simple-page-master 	master-name="main"
				page-width="8.5in"
				page-height="11in"
       				margin-top="50pt"
       				margin-bottom="50pt"
       				margin-left="60pt"
       				margin-right="60pt">
		<fo:region-body margin-bottom="75pt" region-name="xsl-region-body"/>
        </fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="main">
	<fo:flow flow-name="xsl-region-body">
	<fo:block 	font-family="Helvetica" 
			space-before.optimum="12pt" 
			font-size="10pt" 
			start-indent="0.5in">
		<xsl:apply-templates/>
	</fo:block>
	</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>	

<xsl:template match="left">
		<xsl:apply-templates/>
</xsl:template>	

<xsl:template match="center">
		<xsl:apply-templates/>
</xsl:template>	

<xsl:template match="right">
		<xsl:apply-templates/>
		<fo:block/>
</xsl:template>	
===========================================

Hope this helps....
Girish Kanmas
Mobile: +91 (80) 56728348
Received on Thursday, 4 December 2003 04:56:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT