[xsl] Transformation into XSL:FO

Subject: [xsl] Transformation into XSL:FO
From: Sebastian Schirmer <schirmer@xxxxxxxxxxxxx>
Date: Fri, 18 May 2001 10:17:03 +0200
Hello!

I want to transform a XML source document into a XSL:FO Stylesheet via a XSL
transformation.

For example, I want the following template rule in the result stylesheet:




<xsl:template match="object[@type='page']">
	<fo:block break-before="page">
	
		<fo:block><xsl:value-of
select="property[@name='name']"/></fo:block>
		<fo:block color="white">.</fo:block>	
	</fo:block>
</xsl:template>	



How to manage this?

At the moment it looks like that in my transforming stylesheet and is not
really straight forward:




<xsl:template name="insertheader">
	<xsl:text disable-output-escaping="yes">
		<![CDATA[
<xsl:template match="object[@type='page']">
	<fo:block break-before="page">
	
		<fo:block><xsl:value-of
select="property[@name='name']"/></fo:block>
		<fo:block color="white">.</fo:block>	
	</fo:block>
]]>
	</xsl:text>
</xsl:template>	




Thanks 

Sebastian Schirmer>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread