The DirectoryGenerator (Cocoon 2) generates directory listings as XML. This is what C2
uses to present HTML directory listings. Have a look at the samples, namely this
pipeline:
<map:match pattern="**/">
<map:generate type="directory" src="{1}"/>
<map:transform src="stylesheets/system/directory2html.xsl"/>
<map:serialize/>
</map:match>
on the stock sitemap.xmap.
On Fri, 13 Jul 2001 13:28:55 -0400, "D. Musicant" <[EMAIL PROTECTED]> wrote:
--
> Does cocoon enable looking through directories and the file system as xml?
>
> In .Net I wrote my own classes to turn the File System Structure and the
> Request object into XML, but I'd prefer if cocoon had this built in. If not,
> can someone point me to the classes / files I need to work with to put this
> in myself?
>
> Let me tell you, though, it is a big help. I did everything in XML /XSL
> (including data from AND to the database) and it made everything easier to
> manage. When I needed to get directory structure and print it to the page,
> there was no looping and particular implementation. I simply made an XSL
> page. And when I neede that info saved to the database, I can send the same
> XML without ANY ecxtra processing right to the database (I was using SQL
> Server 2000 which can read XML).
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
--
Sergio Carvalho
---------------
[EMAIL PROTECTED]
If at first you don't succeed, skydiving is not for you
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>