Jump to content
Sign in to follow this  
piotridzikowski

[xsl-fo]breaking line

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

Share this post


Link to post
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 :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...