This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applying CSS to XML

Karne Reddy
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • 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.


My xml file employees.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U (>
<employees xmlns:xsi="" xsi:schemaLocation=" employees.xsd" xmlns="">
<?xml-stylesheet type=�text/css� href="emp.css�?>

<employee position="manager">

Here is my css file emp.css

display: block;
font-weight : bold;
name {
display: block;
font-weight : bold;
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?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic