|
Posted by annie on December 15, 2004, 2:18 am
Please log in for more thread options
Hello all.
I am writing an XSL stylesheet that automatically converts a page with
frames to a noframes equivalent of this page, using tables.
I can get the positioning of each frame write in the table layout,
and the only problem left is the dimensions of each cell.
So my question is:
Is there any way of automatically calculating the sizing of each table
cell, representing a frame, so that the resulting page will look like
the framed page, with the same size for each frame content?
I mean, how can I parse the rows and cols attribute values of the
frameset tags to convert them automatically into the correct width and
height of the table cells?
Thanks in advance
Anna
|
|
Posted by Lauri Raittila on December 15, 2004, 12:32 pm
Please log in for more thread options
in comp.infosystems.www.authoring.html, annie wrote:
> Hello all.
> I am writing an XSL stylesheet that automatically converts a page with
> frames to a noframes equivalent of this page, using tables.
You should consider if it makes sence.
> I can get the positioning of each frame write in the table layout,
> and the only problem left is the dimensions of each cell.
>
> So my question is:
> Is there any way of automatically calculating the sizing of each table
> cell, representing a frame, so that the resulting page will look like
> the framed page, with the same size for each frame content?
>
> I mean, how can I parse the rows and cols attribute values of the
> frameset tags to convert them automatically into the correct width and
> height of the table cells?
No. that is because tables and frames are both very bad tools for layout,
and their problems are in opposite places...
You really should use CSS instead.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
|
|
Posted by annie on December 15, 2004, 3:22 am
Please log in for more thread options Thanks for your answer.
CSS is also an option for me, but the problem there is that the
positioning might mess up some content of the frame, if it was
positioned as well.
But even with CSS, how can I generate the CSS layout automatically,
based on the rows/cols values of the frameses?
|
|
Posted by Lauri Raittila on December 15, 2004, 3:57 pm
Please log in for more thread options in comp.infosystems.www.authoring.html, annie wrote:
> Thanks for your answer.
> CSS is also an option for me, but the problem there is that the
> positioning might mess up some content of the frame, if it was
> positioned as well.
I mostly considered it as option to get rid of frames, as I though you
are doing it for your site. Now I understand that it would make sence to
craft such XSL for other reasons too. (if that is the question, mention
it, I believe there is n+1 frame hater lurking out there ready to help
anyone to get rid of frames, but not with frames)
Here is link that nobody has yet posted, which is a must now, otherwise
someone pops and asks what is wrong with frames...
http://www.html-faq.com/htmlframes/?framesareevil
> But even with CSS, how can I generate the CSS layout automatically,
> based on the rows/cols values of the frameses?
Hard to say. Do I assume correctly, that frames would be set in all
possible ways? If you do have percentages, *s and pxs, then CSS most
likely won't be enaugh to do stuff automatically. You could get your
tabled version "work" using fixed table layout modell, but that would not
necessarily help to solve any real problem. (fixed table layout and * as
table width unit is are not too supported either)
Anyway, if your problem is your site, I would post URL to ciwa.site-
design, and as how it would be easiest to remake your whole site, getting
rid both frames and tables...
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
|
|
Posted by Lauri Raittila on December 15, 2004, 12:33 pm
Please log in for more thread options in comp.infosystems.www.authoring.html, annie wrote:
> Hello all.
> I am writing an XSL stylesheet that automatically converts a page with
> frames to a noframes equivalent of this page, using tables.
Forgot: about half of browsers that don't do frames don't do tables
either.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
|
| Similar Threads | Posted | | Searching HTML+CGI source for generating KO tournament management | June 28, 2007, 7:20 am |
| Discover The Secrets To Generating Traffic With Online News Releases | May 12, 2008, 3:16 pm |
| Framed Web Forwarding; Back Button Problem | October 13, 2007, 6:19 am |
| printable version | January 13, 2005, 1:23 pm |
| version of Dreamweaver, does it matter? | October 20, 2005, 2:43 pm |
| Testing with differents version of IE | August 1, 2007, 5:54 pm |
| What version of HTML do browsers support? | October 15, 2004, 8:52 pm |
| Java applet building tool - new version | January 18, 2005, 8:06 am |
| Connect Daily Web Calendar Version 3.2.11 Released | May 5, 2006, 6:05 pm |
| Weird formatting problems appearing only in Linux version of FireFox | December 23, 2004, 10:47 am |
|