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\Shepherd-Schedule-v1.xsl"?>
<ScheduleData Version="1">
<Labels>
<Month>Month</Month>
<Name>Name</Name>
<Date>Date</Date>
<Notes>Notes</Notes>
</Labels>
<Elder Name="Shaun Truckle" Group="Keynsham">
<Calendar>
<Month Month="November">
<Families>
<Family>Family 1</Family>
<Family>Family 2</Family>
</Families>
</Month>
<Month Month="December">
<Families>
<Family>Family 3</Family>
<Family>Family 4</Family>
</Families>
</Month>
<Month Month="January">
<Families>
<Family>Family 5</Family>
<Family>Family 6</Family>
</Families>
</Month>
</Calendar>
</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.