Jump to content

[xsl-fo]breaking line


piotridzikowski

Recommended Posts

Hi.I need to break line in xml-fo. I have somethingt like this:xsl-template

<fo:block><xsl:value-of select="/some/someThing"/></fo:block>

and at xml file:

<some><someThing>first Linesecound Linebla bla bla</someThing></some>

result pdf looks: 'first Line secound Line bla bla bla'What should I do to make xsl-fo to breaks lines?GreetingsPiotr Idzikowski

Link to comment
Share on other sites

Place some kind of breackers in the XML file itself (why do you think the <br /> in HTML was invented for?) and then create an XSLT template with somethink like this:

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

copyright: paetje :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...