Hmm... OK, I've run into some unexpected problems with this.
I now have an XML file which references a XSL file. When I open the XML file in a browser it correctly applies the XSL and sorts and formats the XML file. See the link to the tutorial in my post above to see what I mean.
The problem is though that when I try to include () the xml file I get a parse error. I think that this is due to the xml declaration at the start of the .xml file being enclosed in <? ?>.
This brings me to question 1: How do I turn off short tags so it'll only parse <?php ?> rather than everything in <? ?>. I'm using php5 on apache server if that helps... I had a brief serach throgh both manuals but couldn't find referance to short tag format in either (I'll have a proper look later though)
Moving on...
On the coments on this page there are a number of ways offered in the user comments at the bottom for getting round this problem;
http://www.php.net/manual/en/language.basic-syntax.php
I've tried several and, while I no longer get the php parse error, the xml file isn't finding the xsl so is just displayed as plain text...
So heres question 2: Why is the xml file not linking to the xsl correctly? Is it just because the browser isn't recognising it as xml because I 'cheated' php into echoing the xml and xsl sheet declarations (in which case I assume resolving question 1 will sort this out too) or am I missing something more serious?
Hope that all made sense!