You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Subbiah <su...@utdallas.edu> on 2004/08/01 04:35:08 UTC

Simple q regarding breaks in XSL Fo

This is my day 2 at FOP , I am trying to make an XSL with the similar
output. I had a question regading breaks similar to <br> in HTML

Suppose I want the following output

John Doe
123 mary kay Street

1. Do I have to use 2 blocks to get the ouptut ?
  <fo:block>Joghn Doe</fo:block>
  <fo:block>123 mary kay st</fo:block> 

Or do I put it in a table as 2 rows .


advise

regards,
raman


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Simple q regarding breaks in XSL Fo

Posted by john farrow <fo...@xmlpdf.com>.
An empty block acts as a line break so you can do this:

<fo:block>
        Joghn Doe<fo:block/>
       123 mary kay st
<fo:block>

or maybe this if FOP supports it:

<fo:block linefeed-treatment="preserve">
        Joghn Doe
       123 mary kay st
<fo:block>

Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New
Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand
phone +64 4 479 1738 fax +64 4 479 1294 web http://www.xmlpdf.com
----- Original Message ----- 
From: "Subbiah" <su...@utdallas.edu>
To: <fo...@xml.apache.org>
Sent: Sunday, August 01, 2004 2:35 PM
Subject: Simple q regarding breaks in XSL Fo


> This is my day 2 at FOP , I am trying to make an XSL with the similar
> output. I had a question regading breaks similar to <br> in HTML
>
> Suppose I want the following output
>
> John Doe
> 123 mary kay Street
>
> 1. Do I have to use 2 blocks to get the ouptut ?
>   <fo:block>Joghn Doe</fo:block>
>   <fo:block>123 mary kay st</fo:block>
>
> Or do I put it in a table as 2 rows .
>
>
> advise
>
> regards,
> raman
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: Simple q regarding breaks in XSL Fo

Posted by Subbiah <su...@utdallas.edu>.
Thx u ... 

regards,
raman
-----Original Message-----
From: Ganesh Babu Nallamothu, Integra-India
[mailto:ganeshbabu.nallamothu@integra-india.com] 
Sent: Monday, August 02, 2004 4:51 AM
To: fop-user@xml.apache.org
Subject: RE: Simple q regarding breaks in XSL Fo

Dear Raman,

Both the things will give the same output. But, if you are using table
format, you should not mention the "border" attribute to get this output.
Better you can use two <fo:block> element.

Regards,
Srinivasan


-----Original Message-----
From: Subbiah [mailto:subbiah@utdallas.edu]
Sent: Sunday, August 01, 2004 8:05 AM
To: fop-user@xml.apache.org
Subject: Simple q regarding breaks in XSL Fo


This is my day 2 at FOP , I am trying to make an XSL with the similar
output. I had a question regading breaks similar to <br> in HTML

Suppose I want the following output

John Doe
123 mary kay Street

1. Do I have to use 2 blocks to get the ouptut ?
  <fo:block>Joghn Doe</fo:block>
  <fo:block>123 mary kay st</fo:block>

Or do I put it in a table as 2 rows .


advise

regards,
raman


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: Simple q regarding breaks in XSL Fo

Posted by "Ganesh Babu Nallamothu, Integra-India" <ga...@integra-india.com>.
Dear Raman,

Both the things will give the same output. But, if you are using table
format, you should not mention the "border" attribute to get this output.
Better you can use two <fo:block> element.

Regards,
Srinivasan


-----Original Message-----
From: Subbiah [mailto:subbiah@utdallas.edu]
Sent: Sunday, August 01, 2004 8:05 AM
To: fop-user@xml.apache.org
Subject: Simple q regarding breaks in XSL Fo


This is my day 2 at FOP , I am trying to make an XSL with the similar
output. I had a question regading breaks similar to <br> in HTML

Suppose I want the following output

John Doe
123 mary kay Street

1. Do I have to use 2 blocks to get the ouptut ?
  <fo:block>Joghn Doe</fo:block>
  <fo:block>123 mary kay st</fo:block>

Or do I put it in a table as 2 rows .


advise

regards,
raman


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org