> What about something simpler..  A simple cgi script could parse a config
> file of sorts and create the html on the fly..

Yeah... but I don't really want to mess around on the server.  That's just a
personal preference though.

Anyway, I've monkeyed around with this stuff and checked in a experimental
faq.xml, faq.xsl, and faq.css.  If you're running the right version of
IE/MSXML you can see it in action here:

http://www.dqsd.net/faq.xml

Since not everyone will have the latest IE/MSXML we can do the XML->HTML
conversion manually and stick an updated faq.htm out there whenever the FAQ
is modified.  (Or, we do the same XSL transform on the server ...
http://www.devshed.com/Server_Side/XML/XSLTrans/print ... with
PHP/Sablotron)

Embedding HTML in the XML was weird (I hadn't done this before) -- but
there's a template that _should_ handle all regular HTML elements if they
are prefixed with an "html" namespace.  There are some examples in there.
The XSL template also puts some script in the resulting HTML to
expand/contract the questions when running IE.  We could probably just
change it to expand all of the answers on other browsers.

There are just a few of the FAQs in faq.xml, so check it out and let me know
what you think, how easy or not it would be to maintain.

Glenn


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Monty
> Scroggins
> Sent: Wednesday, August 14, 2002 1:37 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [DQSD-Devel] faq xml
>
>
> What about something simpler..  A simple cgi script could parse a config
> file of sorts and create the html on the fly..  all you would
> have to do is
> manipulate the config.    Or even better yet, check out the
> FAQ::OMatic perl
> module  (in dqsd: cpan faq)
>
>  http://search.cpan.org/author/ABH/FAQ-OMatic-2.712/
>
> Monty
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Glenn Carr
> > Sent: Wednesday, August 14, 2002 11:44 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [DQSD-Devel] faq xml
> >
> >
> > John,
> >
> > I haven't ignored this.  I've just been trying to think of some
> > good options.
> >
> > My first reaction was to suggest we use XSLT to generate HTML in
> > the browser
> > client.  Then, I realized it will only with with IE-based
> > browsers (including
> > NetCaptor).
> >
> > Another option is to generate HTML on the server.  The problem is
> > the server is
> > running Linux/Apache.  Dave can install PHP if necessary, but I
> > don't have any
> > experience with XSL transforms under Linux/PHP.  I'm sure it's
> > not too difficult
> > though.  Just need somebody to get it started.
> >
> > Another option is to store the Q's and A's in a database on the server.
> > Probably mySql and PHP needed to do that.  I don't care for that
> > as much because
> > of the extra maintenance involved.
> >
> > Those are my thoughts.
> >
> > Glenn
> >
> > ----- Original Message -----
> > From: "John W. Bairen, Jr." <[EMAIL PROTECTED]>
> > To: "Dave's Quick Search Group - Developers"
> > <[EMAIL PROTECTED]>
> > Sent: Monday, August 12, 2002 10:39 PM
> > Subject: [DQSD-Devel] faq xml
> >
> >
> > > One of the things I don't like about the faq page is that is
> > very tedious to
> > > add new questions answers and categories.  This is in large
> > part probably my
> > > fault as when I started writing it I was figuring out what
> > little bit I know
> > > about css on the fly.  My question is this: does it become
> any easier to
> > > manage additions of questions/answers/categories if faq.htm
> only renders
> > > faq.xml (or some other name) and faq.xml has the
> > > categories/questions/answers in it?  Can this even be done?  Is
> > it too much
> > > work for the benefit?  Thoughts?
> > >
> > > JB
> > >
> > > John W. Bairen, Jr.
> > > www.bairen.net <http://www.bairen.net/>
> > >
> > >
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: Dice - The leading online job board
> > for high-tech professionals. Search and apply for tech jobs today!
> > http://seeker.dice.com/seeker.epl?rel_code=31
> > _______________________________________________
> > DQSD-Devel mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/dqsd-devel
> >
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Dice - The leading online job board
> for high-tech professionals. Search and apply for tech jobs today!
> http://seeker.dice.com/seeker.epl?rel_code=31
> _______________________________________________
> DQSD-Devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dqsd-devel
>
>



-------------------------------------------------------
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