473,378 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

DTD XML and CSS combo

Hello,

I am having trouble figuring out how to emulate html table behavior as
far as colspan and rowspan goes with my CSS on the XML I am working
with.

the XML has colspan and rowspan attributes for the CELL tag. How do I
use those to get correct rendering behavior in the browser?

the DTD defines custom tags for tables, rows, cells, header, footer,
etc.

In the CSS, I set

TABLE as: table for display property
TBODY as: table-row-group
ROW as: table-row
CELL as: table-cell

with varying values for different properties. It actually looks like a
table but the colspan and rowspan does not seem to influence the
behavior of cells at the rendering engine level. Do I have to take care
of this myself at the CSS level? If this is the case, how do I go about
doing that?

Regards
Jean-Francois Michaud

Feb 1 '06 #1
2 1448
co*****@comcast.net wrote:
I am having trouble figuring out how to emulate html table behavior as
far as colspan and rowspan goes with my CSS on the XML I am working
with.
With current CSS - you can't. Work doesn't appear to have started for the
module that might be able to do it in CSS 2.

http://www.w3.org/Style/CSS/current-work#tables
It actually looks like a table but the colspan and rowspan does not seem
to influence the behavior of cells at the rendering engine level.
They wouldn't - there's nothing magic about the attribute names.
Do I have to take care of this myself at the CSS level?
Yes.
If this is the case, how do I go about doing that?


Wait until CSS supports it :)

You are probably better off transforming the XML into HTML 4.01 Strict
before serving it up to web browser clients.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Feb 1 '06 #2

David Dorward wrote:
co*****@comcast.net wrote:
I am having trouble figuring out how to emulate html table behavior as
far as colspan and rowspan goes with my CSS on the XML I am working
with.
With current CSS - you can't. Work doesn't appear to have started for the
module that might be able to do it in CSS 2.


Doh!
http://www.w3.org/Style/CSS/current-work#tables
It actually looks like a table but the colspan and rowspan does not seem
to influence the behavior of cells at the rendering engine level.
They wouldn't - there's nothing magic about the attribute names.
Do I have to take care of this myself at the CSS level?


Yes.
If this is the case, how do I go about doing that?


Wait until CSS supports it :)


Is there a way I can recuperate information in XML ( with CSS(1 or 2))
and actually use the values recuperated as values in the CSS stylesheet
(like a variable that would resolve into a string in the CSS at
runtime).

something like (this is pseudocode for what I would like it to do)

CELL[halign]{
text-align: attr(halign);
}

instead of

CELL[halign="left"]{
text-align: left;
}

CELL[halign="center"]{
text-align: center;
}

CELL[halign="right"]{
text-align: right;
}
That would be a good start :).

You are probably better off transforming the XML into HTML 4.01 Strict
before serving it up to web browser clients.


Unfortunately impossible given other circumstances. I am currently
using a browser to view the styling output.

Regards
Jean-Francois Michaud

Feb 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: vgrssrtrs | last post by:
<html> <head> <script language="JavaScript"> <!-- /* *** Multiple dynamic combo boxes *** by Mirko Elviro, 9 Mar 2005 *** ***Please do not remove this comment
4
by: Heather | last post by:
Hi I am desparately looking for advice in relation to storing the results after selecting items from two combo boxes on a Referral form. The first combo box 'ctl Type' displays a full list of...
6
by: Support4John | last post by:
a2k (9.0.6926) SP-3 Jet 4.0 SP-7 I have a form with combo box field that allows the user to select from the combo box or type in the field value that may or maynot be in the combo box field. ...
2
by: Jeff Mason | last post by:
I'm observing some strange behavior when I use a bound combo box in conjunction with the combo's anchor property. I define a form which contains just a textbox and a combo box. The text box is...
3
by: hmiller | last post by:
Hey everyone, I am having a hell of a time trying to set this menu system up. Here's what I'm trying to do. Combo Box One; is populated by names under properties "row source" "Phase 1"...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
2
by: kiranmn75 | last post by:
I want to dynamically populate a combo box through javascript. Data is coming from a array. Sometimes data list may contain items in excess of 2000. Explorer takes more than 5 seconds to...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
2
by: biganthony via AccessMonster.com | last post by:
Hi, I decided to install Office 2003 Service Pack 3 on my home computer to test (in full knowledge that there may be some issues with it). After installation, I have noticed that with a small...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.