PDA

View Full Version : XML Help


jcrox
09-21-07, 03: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> "

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

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

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