XML table display using CSS
XML table display using CSS
am 28.11.2007 05:04:25 von pradeep
When using CSS to display an XML file as a table, is there a way to
show the element names at the tops of the columns as headers?
For Example :
I have a XML file
Item1
500
10
Item2
600
20
Item3
700
25
Item4
900
90
and the output which I want is
------------------------
| | PRICE | QTY |
------------------------
Item1 | 500 | 10 |
------------------------
Item1 | 600 | 20 |
------------------------
Item1 | 700 | 25 |
------------------------
Item1 | 900 | 90 |
------------------------
Re: XML table display using CSS
am 28.11.2007 05:22:04 von raphit42
On Nov 27, 10:04 pm, Pradeep wrote:
> When using CSS to display an XML file as a table, is there a way to
> show the element names at the tops of the columns as headers?
>
> For Example :
> I have a XML file
>
>
> Item1
> 500
> 10
>
>
> Item2
> 600
> 20
>
>
> Item3
> 700
> 25
>
>
> Item4
> 900
> 90
>
>
>
> and the output which I want is
>
> ------------------------
> | | PRICE | QTY |
> ------------------------
> Item1 | 500 | 10 |
> ------------------------
> Item1 | 600 | 20 |
> ------------------------
> Item1 | 700 | 25 |
> ------------------------
> Item1 | 900 | 90 |
> ------------------------
yea, i want to know that too.
www.2learnknowledge.com
Re: XML table display using CSS
am 28.11.2007 07:08:37 von rf
"Pradeep" wrote in message
news:97df42db-eda1-4aa1-bb56-2cc824018bd0@b40g2000prf.google groups.com...
> When using CSS to display an XML file as a table, is there a way to
> show the element names at the tops of the columns as headers?
Exactly how do you use CSS to display an XML file as a table?
--
Richard.
Re: XML table display using CSS
am 28.11.2007 10:16:39 von dorward
On Nov 28, 6:08 am, "rf" wrote:
> Exactly how do you use CSS to display an XML file as a table?
http://dorward.me.uk/tmp/xml-as-table/data.xml (probably not IE
compatible, successfully tested on Firefox)
--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
Re: XML table display using CSS
am 28.11.2007 10:28:05 von rf
"David Dorward" wrote in message
news:411b1203-015f-46a5-a4b8-1bcabcc084f3@w28g2000hsf.google groups.com...
> On Nov 28, 6:08 am, "rf" wrote:
>
>> Exactly how do you use CSS to display an XML file as a table?
>
> http://dorward.me.uk/tmp/xml-as-table/data.xml (probably not IE
> compatible, successfully tested on Firefox)
How remarkable :-)
IE6, IE7: (56KB)
http://barefile.com.au/xml.jpg
Guess it's not viable on the web :-(
--
Richard.
Re: XML table display using CSS
am 28.11.2007 17:55:31 von cwdjrxyz
On Nov 28, 3:28 am, "rf" wrote:
> "David Dorward" wrote in message
>
> news:411b1203-015f-46a5-a4b8-1bcabcc084f3@w28g2000hsf.google groups.com...
>
> > On Nov 28, 6:08 am, "rf" wrote:
>
> >> Exactly how do you use CSS to display an XML file as a table?
>
> >http://dorward.me.uk/tmp/xml-as-table/data.xml(probably not IE
> > compatible, successfully tested on Firefox)
>
> How remarkable :-)
>
> IE6, IE7: (56KB)
>
> http://barefile.com.au/xml.jpg
>
> Guess it's not viable on the web :-(
IE has handled a sort of XML a long time, but this is different from
the official W3C methods. If you could extend to IE, then most recent
browsers could handle the XML. However if you wanted support for some
older browsers, you would still have a problem. One might try using
Microsoft conditional comments. If the browser is Microsoft, the
content of a conditional comment would be processed, and it would
contain an IE method for processing XML. If the browser is not
Microsoft, then a path for all other browsers is used. I really do not
have the time and interest in this to examine in detail if the
conditional comment approach would work.
Re: XML table display using CSS
am 29.11.2007 11:21:44 von Toby A Inkster
Pradeep wrote:
> When using CSS to display an XML file as a table, is there a way to show
> the element names at the tops of the columns as headers?
Yes. Ditch CSS and use XSLT instead.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 4 days, 17:11.]
[Now Playing: Razorlight - Leave Me Alone]
Sharing Music with Apple iTunes
http://tobyinkster.co.uk/blog/2007/11/28/itunes-sharing/
Re: XML table display using CSS
am 01.12.2007 20:55:51 von Jasbird
On Tue, 27 Nov 2007 20:22:04 -0800 (PST), raphit42@gmail.com wrote:
>On Nov 27, 10:04 pm, Pradeep wrote:
>> When using CSS to display an XML file as a table, is there a way to
>> show the element names at the tops of the columns as headers?
>>
>> For Example :
>> I have a XML file
>>
>>
>> Item1
>> 500
>> 10
>>
>>
>> Item2
>> 600
>> 20
>>
>>
>> Item3
>> 700
>> 25
>>
>>
>> Item4
>> 900
>> 90
>>
>>
>>
>> and the output which I want is
>>
>> ------------------------
>> | | PRICE | QTY |
>> ------------------------
>> Item1 | 500 | 10 |
>> ------------------------
>> Item1 | 600 | 20 |
>> ------------------------
>> Item1 | 700 | 25 |
>> ------------------------
>> Item1 | 900 | 90 |
>> ------------------------
>
>yea, i want to know that too.
>
>www.2learnknowledge.com
Why why are you spamming this forum with your url:
www.2learnknowledge.com. It is not a good idea to spam a forum like this
which is full of people who know how the internet works because each
time you do so, someone may point out and your website
www.2learnknowledge.com is being spammed around usernet.
If you want to continue getting away with sending spam and pimping your
site you should keep your spam from www.2learnknowledge.com as far away
from web developers as possible with.