forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject Re: Cleaning up html-processing
Date Mon, 03 Oct 2005 22:35:38 GMT
Kevin wrote:
> Ferdinand Soethe wrote: 
> 
> > But using these new transformation it becomes obvious that it is no
> > longer a css-Effekt. If you make Forrest transform an html-file
> > with something like
> > 
> > <table class="foo">
> > .....
> > 
> > The resulting Forrest page will have
> > 
> > <table class="foo"  border="1">
> > ....
> 
> I can't reproduce the border="1" problem. I tried a basic test.
> 
> <html>
> <head><title>Tables</title></head>
> <body>
> <h1>Borders?</h1>
> <table><tr><td>Forrest Table</td></tr></table>
> <table class="foo" cellpadding="5"><tr><td>Foo Table</td></tr></table>
> </body>
> </html>
> 
> Generated Forrest page had no borders on either table
> and no expected ForrestTable class on <table> with no class.
> 
> Going back to document2html.xsl before update:
> 
>   <xsl:template match="table">
>     <xsl:apply-templates select="@id"/>
>     <table cellpadding="4" cellspacing="1" class="ForrestTable">
>       <xsl:copy-of select="@cellspacing | @cellpadding | @border |
> @class | @bgcolor"/>
>       <xsl:apply-templates/>
>     </table>
>   </xsl:template>
> 
> If @class and other attributes are set then don't they copy over
> class="ForrestTable" cellpadding="4" cellspacing="1" so only getting
> defaults when not set. So works as expected.
> 
> Sorry can't help on the border="1" it must be comming into this xsl.
> 
> Kevin
> 
> > and my problem is that I have not found out where this is coming from.
> > 
> > Any ideas?

I had to contruct a hefty find|grep|grep to exclude other mentions
of border stuff, so might have excluded some other relevant things.

Other than some CSS which sets border=1px, i cannot find anything
other than one mention in skins/tigris/xslt/html/document2html.xsl
and a commented-out section in main/webapp/resources/stylesheets/page2html.xsl

-David


Mime
View raw message