• 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

Applying CSS to XML

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends ,
This is my first post in xml.

Iam having a problem while i am trying to apply a css file to XML file.
I am not getting the expected results.

Details:

My xml file employees.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<employees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.employees.com/a employees.xsd" xmlns="http://www.employees.com/a">
<?xml-stylesheet type=�text/css� href="emp.css�?>

<employee position="manager">
<name>
<first>John</first>
<last>Dent</last>
</name>
<age>34</age>
</employee>
.........
</employees>


Here is my css file emp.css

employee{
display: block;
font-weight : bold;
}
name {
display: block;
font-weight : bold;
font-size:18pt
}
age{
display: none;
}


When when i am accessing the employees.xml file in browser(Mozilla &
IE) I am not getting the expected result.

Can anybody help me out?


--------
SCJP,SCWCD
 
She's brilliant. She can see what can be and is not limited to what is. And she knows this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic