XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Dell PowerEdge Servers
  #1  
Old April 7th, 2008, 05:05 PM
josteen josteen is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 36 josteen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 39 m 34 sec
Reputation Power: 1
How do you use XML attributes in CSS declarations

How do you use element attributes as part of your CSS declaration?

For instance, I want to display the following into a row of data...

Code:
<quotes>
   <titles>
      <column id="c1">Symbol</column>
      <column id="c2">Name</column>
      <column id="c3">Last Sale</column>
      <column id="c4">Net Change</column>
      <column id="c5">% Change</column>
      <column id="c6">Volume</column>
   </titles>
</quotes>


The CSS I am using is ....

Code:
quotes {display:table}

titles {display: table-row}

column[id="c1"], column[id="c2"], column[id="c3"], column[id="c4"], column[id="c5"], column[id="c6"] {display: table-cell}


so whereever I have an element with an attribute I am using...

element[attribute="value"] {declaration}

...but this is not working. It includes the first column "c1" into the row and then nothing else.

Any clues?

Reply With Quote
  #2  
Old April 8th, 2008, 07:59 AM
bals28mjk's Avatar
bals28mjk bals28mjk is offline
Person
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2007
Location: Moon
Posts: 647 bals28mjk User rank is First Lieutenant (10000 - 20000 Reputation Level)bals28mjk User rank is First Lieutenant (10000 - 20000 Reputation Level)bals28mjk User rank is First Lieutenant (10000 - 20000 Reputation Level)bals28mjk User rank is First Lieutenant (10000 - 20000 Reputation Level)bals28mjk User rank is First Lieutenant (10000 - 20000 Reputation Level)bals28mjk User rank is First Lieutenant (10000 - 20000 Reputation Level)bals28mjk User rank is First Lieutenant (10000 - 20000 Reputation Level)bals28mjk User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 4 Days 4 h 13 m 21 sec
Reputation Power: 165
That's odd; it should work with browsers with proper css 2.1 support.

What properties/values are you giving to the cell elements? Also, what browser(s) are you testing with?
__________________
Give Opera some love. Use it and you'll see why.

Oh, those monkeys.

Another friend of mine.

My body is so sexy.

What's wrong with the world today?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > How do you use XML attributes in CSS declarations


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway