Re: table cell issues

Hi,

Using substring() function you can get the required output.
Identify the number of characters on the first line and present through a
block.
Remaining part of the string is displayed through the other block, which is
indented.

Hope, I am right.
I would others to come up with some other easy means.

------------------------
<?xml 	version="1.0"
	encoding="UTF-8"?>

<xsl:stylesheet	version="1.1"
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		xmlns:fo="http://www.w3.org/1999/XSL/Format"
		exclude-result-prefixes="fo">

<xsl:output 	method="xml"
		version="1.0"
		omit-xml-declaration="no"
		indent="yes"/>

<xsl:template match="chapter">

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

	<fo:layout-master-set>
        	<fo:simple-page-master
			page-master-name="main"
          		margin-top="50pt"
          		margin-bottom="50pt"
          		margin-left="75pt"
          		margin-right="75pt">
        			<fo:region-body margin-bottom="75pt"/>
	        </fo:simple-page-master>
      	</fo:layout-master-set>

	<fo:page-sequence master-reference="">
		<fo:flow flow-name="">
			<fo:table  table-layout="fixed">
				<fo:table-column column-width="64mm"/>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell border="0.5pt solid black">
							<fo:block 	text-align="start"
									font-size="8pt"
									color="slateblue">
								<xsl:value-of select="substring(data,1,45)"/>
							</fo:block>
							<fo:block 	text-align="start"
									font-size="8pt"
									line-height="12pt"
									color="slateblue"
									start-indent="7mm">
								<xsl:value-of select="substring(data,45)"/>
							</fo:block>

						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</fo:flow>
	</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
-----------------------------------

Girish Kanmas
TI Extn: 1387
Mobile: +91 (80) 56728348

Received on Tuesday, 28 October 2003 07:14:17 UTC