Discussion Locked

Bind HTML to XML data islands

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What do you think about binding HTML elements to XML data islands, as featured in this week's Web Development Zone newsletter? Do you have any firsthand experience with this specific topic?

6 replies

by lauriek

How would you set up a row of titles when the whole table is bound to the data island? I realise the xml data could contain the headings but generally I would like to apply a different style to the table headings from the table data. I have the following example in which I have used two tables, but then without specifying td widths which is never a good idea, how would I make the two tables line up?

[code]

XML Island test

BARC
1927.23
+2.4
+0.01%
12,022,243,333
1299

ARM
127.23
+12.4
+10.0%
22,243,333
199

Code Price Change % Volume Trades

[/code]

Any pointers much appreciated, as I think this would be pretty useful if I could work out how to get round this problem!
ta'

Laurie

by phil_perkins_1

One way is to set your widths with on each of your tables. Then add the "table-layout:fixed;" style attribute to your tables. A better way is to ditch the title table and add a

section to your data items table:

Code Price Change % Volume Trades

You can then apply the same styles to the

's as you did the 's in your title table.

by lauriek

Yep thats got it, cheers Phil! I always wondered what the real point of TH's were! Now I know... ;)
Cheers
Laurie

by asyn42

That looks pretty cool. But In our environment, IE is not the only browser. We also need to support others, in particular the Mozilla derivatives (ie: Netscape) and may also need to support Opera.

If you are going to target an article to IE, make sure you point out clearly that it is a non-standard IE extension, and is not supported by other browsers.

Don't get me wrong. I think it's a cool feature. But it just isn't applicable. I need solutions that work on multiple browsers.

This discussion is closed to new replies.