View Full Version : XML Help

09-21-07, 04:57 PM
This is I'm sure simple but I'm really strapped for time and need help.

My xml document passes validation, My DTD is fine and I have it displaying fine using a cascading style sheet, except one thing, I have an element named BackOrderedAmount that needs to display a zero with a color of navy except when it has the attribute.... then it needs to be red... anyone help with this please? And yes I HAVE to use a css, I can't use xsl for this exercise.

"<!ELEMENT BackOrderedAmount (#PCDATA)>
<!ATTLIST BackOrderedAmount date CDATA #IMPLIED> "

09-22-07, 04:37 PM
NM... duh!

I was using () instead of [] in the css sheet for the attribute. I knew it was something stupid and easy.

09-22-07, 07:41 PM
Are you in the UW-Madison CS program? I also go to UW, but not at Madison