Hey all, I've been silent for quite some time, things are busy. =(

Anyway, I have a couple thoughts.

If the XML file isn't going to change frequently, it would be best to
transform it with the XSLT stylesheet once on the server to generate a
static HTML file.  That's what the webserver will dish out when a user
requests the FAQ.

If you want to install PHP for this, then I can write the PHP script to do
this -- it's actually pretty easy.  The simplest approach would be to
compare the date of the .html file to the .xml file.  If the xml file is
newer, regenerate the .html file.


Here ya go:
<?php

if(filemtime('faq.xml') > filemtime('faq.html'))
{
   $xp = xslt_create()
   xslt_process($xp, 'faq.xml', 'faq.xsl', 'faq.html');
   xslt_free($xp);
}

include('faq.html');
?>



Another solution is to have CVS handle it.  You can set up a commit trigger
so that CVS will generate a new HTML file whenever faq.xml is checked in.


I haven't been following the list that much, so I don't know if the
notesbydave.com files are part of the dqsdd project files at sourceforge, if
there's a separate cvs repository set up for those, or if there isn't a
repository for those at all.


take care,

nik



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
DQSD-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dqsd-devel

Reply via email to