You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Dr. Hans M. Rupp" <ha...@danet.de> on 2002/06/26 12:11:03 UTC

Reformatting of html source problems

Hallo!

We have a general problem with publishing html with Cocoon. The core of
the problem is that a html page can be rendered differently with
different layouts of the otherwise identical html source code.

For example:

<tr>
<td colspan="5" bgcolor="#ffffff"><img height="5" width="1"
src="b.gif"></td>
</tr>
draws a 5 pix high line across the table

however

<tr>
<td colspan="5" bgcolor="#ffffff">
    <img height="5" width="1" src="b.gif">
</td>
</tr>

draws a line which has the height single line of text, because of
the line break.

I have noticed that at some points the html serializer does introduce
the extra line-feed at others not. Looking thru our stylessheet I have
not been able to figure out what might cause this behavior.
We have already tried a serializer which does not include linebreaks at
all, all the html source appears on a single line. But that might cause
problems at other points of the layout too and the html source output is
unreadable.

We get html pages from a design company and translate them to XSL and
XSP to run them on Cocoon. I would guess that this kind of workflow must
be rather common. So the problem must have turned up before.

Is there any general solution for this problem? How are we supposed to
deal with sophisticated input from html designers?


Many thanks,


Hans



--------------------------------------------
Dr. Hans M. Rupp
danet Internet Solutions GmbH
Waldburgstr. 17-19
70563 Stuttgart
Germany

Fon +49 711 133 53 50
Fax +49 711 133 53 53

------------------------------------------



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Reformatting of html source problems

Posted by Christoph Gaffga <cg...@triplemind.com>.
Hi !

perhaps it helps if you decrease the line-height (style-attribute):

<tr>
  <td colspan="5" bgcolor="#ffffff" style="font-size: 1px">
    <img height="5" width="1" src="b.gif">
  </td>
</tr>


Christoph Gaffga
cgaffga@triplemind.com


----- Original Message ----- 
From: "Dr. Hans M. Rupp" <ha...@danet.de>
To: <co...@xml.apache.org>
Sent: Wednesday, June 26, 2002 12:11 PM
Subject: Reformatting of html source problems


> Hallo!
> 
> We have a general problem with publishing html with Cocoon. The core of
> the problem is that a html page can be rendered differently with
> different layouts of the otherwise identical html source code.
> 
> For example:
> 
> <tr>
> <td colspan="5" bgcolor="#ffffff"><img height="5" width="1"
> src="b.gif"></td>
> </tr>
> draws a 5 pix high line across the table
> 
> however
> 
> <tr>
> <td colspan="5" bgcolor="#ffffff">
>     <img height="5" width="1" src="b.gif">
> </td>
> </tr>
> 
> draws a line which has the height single line of text, because of
> the line break.
> 
> I have noticed that at some points the html serializer does introduce
> the extra line-feed at others not. Looking thru our stylessheet I have
> not been able to figure out what might cause this behavior.
> We have already tried a serializer which does not include linebreaks at
> all, all the html source appears on a single line. But that might cause
> problems at other points of the layout too and the html source output is
> unreadable.
> 
> We get html pages from a design company and translate them to XSL and
> XSP to run them on Cocoon. I would guess that this kind of workflow must
> be rather common. So the problem must have turned up before.
> 
> Is there any general solution for this problem? How are we supposed to
> deal with sophisticated input from html designers?
> 
> 
> Many thanks,
> 
> 
> Hans
> 
> 
> 
> --------------------------------------------
> Dr. Hans M. Rupp
> danet Internet Solutions GmbH
> Waldburgstr. 17-19
> 70563 Stuttgart
> Germany
> 
> Fon +49 711 133 53 50
> Fax +49 711 133 53 53
> 
> ------------------------------------------
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


How to repeat form in xmlforms

Posted by Mohamed Abdel Hamid <mo...@imkenberg.net>.
hi all
i start with xmlforms but now i have a problem
i don't know how to vreate mutiple forms inside one document
becuase i have repeated data
and i'd like to submit part of this data not all
and every part has its own submit button now when i submit all data send and
i can't  distinguish the data i want
anyone can help me in this


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Browser specific pipeline

Posted by Abhishek Goel <Ab...@morganstanley.com>.
Hi,
i want to execute my pipeline only when browser is IE and if browser is
netscape i want other pipeline to get executed.
Can anyone help me in this?
Regards
Abhishek Goel



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Reformatting of html source problems

Posted by Morgan Roderick <mo...@roderick.dk>.
>Is there any general solution for this problem?
This is a known browser problem that has been well documented at several
sources.

For a quick fix, try adding this to the <head> section of your html
output.

<style>
	td img{
		display: block;
	}
</style>

One of the best articles I've read on the subject is this one by the
brilliant Eric A. Meyer:
http://developer.netscape.com/evangelism/docs/articles/img-table/


>How are we supposed to deal with sophisticated input from html
designers?
Get the designers up to speed on browser issues and CSS, maybe even
XSLT, so you can focus on building the site, instead of hunting down
browser bugs.

/Morgan Roderick




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>