The following file can be used to format the display of XML files. The XML file must be amended to include a second line with the following reference:
<?xml-stylesheet type="text/xsl" href="authsig_newpage.xsl"?>
The reference within the XSL file to some styles is optional and can be amended to reflect your own preferences. It allows you to control the formatting of a table, rather than the data being presented using the defaults chosen by Internet Explorer.
save as: 'authsig_newpage.xsl' (without sorting or selecting the XML data) |
<?xml version="1.0"?> |
Note: if you wish to sort the
XML data, replace the highlighted line above with something like this:
<xsl:for-each select="meadinkent/record" order-by="name"> or <xsl:for-each order-by="acode" select="meadinkent/record[directorate$eq$'Finance']"> |
To Copy and Paste the code shown above, it is best to Paste it initially into NotePad (or a plain text editor) in order to avoid any of the unwanted formatting instructions being included.
file: xsl_coding.htm | © MeadInKent.co.uk 2011 | Page last updated Nov07 |