[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Linebreak problem

Subject: Linebreak problem
From: Asbjørn Thorsen <a.r.thorsen@xxxxxxxxxxx>
Date: Fri, 22 Dec 2006 10:38:43 +0100
fo linebreak
How do I make a linebreak in xsl-fo ?
This is what I've tried.

XML:

<letter>
  <text>I really need a linebreak in this line <br/> because I need to see how it' done</text>
</letter>

XSL:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
  <xsl:template match="/">
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <fo:layout-master-set>
	<fo:simple-page-master master-name="frame"
			       page-height="297mm" page-width="209mm"
			       margin-left="0mm" margin-right="0mm">
	  <fo:region-body region-name="frame-body"/>
	</fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="frame">
	<fo:flow flow-name="frame-body" font-family="Times">
	    <fo:block>
              <xsl:value-of select="letter/text"/>
	    </fo:block>
        </fo:flow>

</fo:page-sequence>

</fo:root>

</xsl:template>

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

</xsl:stylesheet>

This doesn't work.....why ?

Asbjxrn

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.