Re: xsl:fo rendering

David Carlisle <[email protected]>
Newsgroups gmane.text.xml.xsl.general
Message-ID <[email protected]>

> 1.How do we write the XSL to produce the above XSL:FO file? I am quite ok with 
> writing xsl style sheets but do not know how to write xsl to produce xsl:fo..

FO is just an XML format to XSLT, XSLT doesn't have (or need) any
special instructions to create FO. So how to write the stylesheet
depends on what the input is.


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0"
                xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
	<fo:simple-page-master page-master-name="my-page">
		<fo:region-body  margin="1in"></fo:region-body>
	</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence >
<fo:flow flow-name="xsl-region-body">
		<fo:block> Hello World</fo:block>
	</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>

</xsl:stylesheet>


would produce that document from any input.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.