• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

My first XML code

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !
I am having problems with the following code which is the first code in my book. It is the most simple code of XML and CSS one can write.
________________________________________________________________
<?xml version="1.0" standalone="yes" ?>
<?xml-stylesheet type="text/css2" href="mices.css"?>
- <workingday>
- <d_9th>
<dayshift>AF : KM</dayshift>
<nightshift>RW : AP</nightshift>
</d_9th>
- <d_10th>
<dayshift>AF : KM</dayshift>
<nightshift>RW : AP</nightshift>
</d_10th>
</workingday>
________________________________________________________________
and here is the CSS file:
________________________________________________________________
dayshift {display: block; font-size:24pt; font-weight: bold;}
workingday {display: block; font-size:24pt; font-weight: bold;}
________________________________________________________________
I don't know what went wrong but when i open XML files in IE it print it same as the xml file looks in NOTEPAD. Both the XML and CSS files are in the same folder so there nothing wrong in the "href".
please help me in this. Both file are mices.xml and mices.css.
Thanks
-=A=-
[This message has been edited by amit patel (edited December 09, 2001).]
[This message has been edited by amit patel (edited December 09, 2001).]
 
amit patel
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ajithbhai,
I am using XML bible to start learning XML. Is this is the book I should go for or some other book?
I am having problem as I writen above can you please help in this matter?
Thanks
-=A=-
 
amit patel
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, so I try the same example on Mozilla browser and it works.
the same example on IE6 doesn't work. so now my question is changed.
:::: Why is this happening ? ::::
-=A=-
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
change the type="text/css2" to type="text/css"
and it works in IE5, think css2 is not supported by MS

Originally posted by amit patel:
OK, so I try the same example on Mozilla browser and it works.
the same example on IE6 doesn't work. so now my question is changed.
:::: Why is this happening ? ::::
-=A=-


 
amit patel
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yup, thats right.
that was the currect reason why it was not working I changed it and its fine now.
Thanks
-=A=-
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic