sgbarrage Posted February 17, 2012 Share Posted February 17, 2012 Hello everyone,I am trying to solve this problem. I have a simple xml file <?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/css" href="style.css"?><library><shelf> <book>Green book</book> <book>Red book</book></shelf><shelf> <book>Yellow book</book> <book>Purple book</book> <book>Orange book</book></shelf></library> and the style.css file looks like library book{display: list-item;list-style-type: decimal;margin-left: 20px;} Now, this displays my xml file like this1. Green book2. Red book1. Yellow book2. Purple book3. Orangle but I would like to achieve this result instead1. Green book2. Red book3. Yellow book4. Purple book5. Oranglethat means.. no counter reset between shelf element. Can anybody show me a way to do this, if there is such? Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.