OUTPUT.XML

From PARS
Revision as of 09:23, 29 April 2014 by Admin (talk | contribs) (Created page with "thumb|Using XSLT and XML to generate a [[Student review.]] This file is generated by PARS every time a Student review is run. It contains all of the [[G...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Using XSLT and XML to generate a Student review.

This file is generated by PARS every time a Student review is run. It contains all of the Grading, Behaviour and Attendance data for a student (even data not visible on the review) as well as a number of other useful pieces of information.

How to generate an OUTPUT.XML file

The easiest way to send a file to the PARS helpdesk is to use this option:

If this does not work (e.g. because the website is blocked), the file can be found in the local PARS/TEMP folder after generating a review, usually:

C:\program files\SIMS\PARS .net\TEMP

To generate a review follow these steps, the review design you use does not affect the data that are outputted:

  • PARS main menu -> Student reviews -> Student review periods.
  • Add review period -> give a title.
  • Start and end dates should be at least the same as the grade entry period.
  • In the "Review description" columns select any template for the year group containing the pupil(s) who are to receive the final review. if you do not have a template configured, one can be found here
  • Tick the "More options" column if the review is to have G&T or EAL information.
  • Click accept -> Click on the period you just created -> "Generate a review period" -> Select the pupil(s) who have had data entered.
  • Once the report has run check the PARS TEMP folder for the file OUTPUT.XML. The TEMP folder is usually found here:
c:\program files\sims\pars .net\TEMP\

N.B. if you are unable to access your local PARS/TEMP folder (e.g. due to permissions), generate a student review so it is visible in your web browser. Edit the file name shown in the address bar so it says OUTPUT.XML (keep the rest of the path the same) and press Enter. This will show the output.xml file on screen. Right click -> View source to see the actual contents of the file, copy this into Notepad and save as OUTPUT.XML

Additional info

Student review designs use XSLT to layout the data in the OUTPUT.XML file, converting it to HTML in the final printable copy.

A Default slip design is available that shows all grades available in the OUTPUT.XML file, if grades are missing or duplicated in a student review this design is useful to see all of the available data in the OUTPUT.XML. Create a Student Review Period using this design with the same date range as your design being troubleshooted.

There are various free pieces of software that make it easier to work with XML and XSLT:

XMLfox rearranges the XML into a grid view and makes it easy to navigate through large files.

Notepad++ is a useful program for editing code and has settings for a wide range of different languages.

The best way to work on a Student review design is to copy the XSLT review design text to a new text file called e.g. example.xsl. Place this file in a folder with an OUTPUT.XML file containing students who already have had the relevant data entered in PARS. Open the OUTPUT.XML file and insert this text at the very top:

<?xml-stylesheet type="text/xsl" href="example.xsl"?>


Now open the OUTPUT.XML file in Internet Explorer (other browsers may not work) and the final report will be generated. Make changes to the XSLT file, save then refresh the browser window to see the effect of the changes.