September 1st, 2002, 02:03 PM
Accessing XML documents
Well, I finally got a good XML template to use for my documents, and a working XSL sylesheet to format it. The only part left for me to figure out is how I'm going to access it. My best thought was to use PHP, and hold it in a database. Then, I'd access it like a normal file. Is there any other/better ways of going about this?
September 1st, 2002, 11:35 PM
You can do that, but there's no reason you couldn't just store them on the filesystem. The only compelling reason to store them in a database would be to perform queries on the documents. This is complicated by the data being in xml format, but not impossible.
September 2nd, 2002, 12:00 AM
I wanted to base my site around a template, and then put my include my XML articles within it. Is there a way to call an XML document like that, or would I have to go PHP?
September 2nd, 2002, 12:34 AM
Have you read the documentation for php's xslt functions? You can get the result of a transformation as a string that can then be echo'd out to your page. xslt_process can take an xml file and an xsl file as arguments, or strings of xml data.
September 2nd, 2002, 06:57 PM
There we go! This should be the answer to help me out. Thanks!