Advanced Customization
Advanced Customization
There are 3 files that you need to familiarize yourself with:
XML |
This is the file that contains all of the schedule information. |
XSL |
This is the schedule template that contains the look and feel of the schedule. |
CSS |
This is the styling information (like fonts, colours, borders etc.) |
The XSL file (in combination with the CSS file) displays the content of the XML file in the preview area.
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="C:\Users\ajtru\AppData\Roaming\VisitsRota\ElderlyInfirm-Schedule-v1.xsl"?>
<ScheduleData Version="1">
<Labels>
<Month>Month</Month>
<Name>Name</Name>
<Week1>Week 1</Week1>
<Week2>Week 2</Week2>
<Week3>Week 3</Week3>
<Week4>Week 4</Week4>
<Week5>Week 5</Week5>
</Labels>
<Elder Name="Elder 1">
<Calendars>
<Calendar Month="November">
<Publishers>
<Publisher Name="Publisher 1">
<Weeks>
<Week Day="5"/>
<Week Day="12"/>
<Week Day="19"/>
<Week Day="26"/>
</Weeks>
</Publisher>
<Publisher Name="Publisher 2">
<Weeks>
<Week Day="5"/>
<Week Day="12"/>
<Week Day="19"/>
<Week Day="26"/>
</Weeks>
</Publisher>
</Publishers>
</Calendar>
<Calendar Month="December">
<Publishers>
<Publisher Name="Publisher 3">
<Weeks>
<Week Day="3"/>
<Week Day="10"/>
<Week Day="17"/>
<Week Day="24"/>
<Week Day="31"/>
</Weeks>
</Publisher>
<Publisher Name="Publisher 4">
<Weeks>
<Week Day="3"/>
<Week Day="10"/>
<Week Day="17"/>
<Week Day="24"/>
<Week Day="31"/>
</Weeks>
</Publisher>
</Publishers>
</Calendar>
</Calendars>
</Elder>
</ScheduleData>
The above example show you how all schedule detail is stored in the XML file so you will know how to access the information from within your XSL template. It is assumed that you have a working knowledge of writing XSL files and it is beyond the scope of this help file to go into details about XSL files.