XML/CSS Style/break
Версия от 18:22, 25 мая 2010; (обсуждение)
Specifying Page Breaks
File: Data.xml
<?xml version="1.0" ?>
<?xml-stylesheet type="text/css" href="Style.css" ?>
<lists>
<employees>
<name>name 1</name>
<projects>
<project>project 1</project>
<project>project 2</project>
</projects>
</employees>
</lists>
File: Style.css
lists {
display:block
}
employees {
page-break-after:always
}
name {
color:red
}
projects {
display:block
}
project {
display:list-item;
list-style:url(mini.jpg) inside
}