cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Сергей <che...@dialektika.com>
Subject Depth in DirectoryGenerator
Date Tue, 16 Jul 2002 04:20:58 GMT
Hi All,

I try to use DirectoryGenerator to create dynamic directory list. In
documentation said,
it's possible to set arbitrary depth of directory recursion. For example, I
have set depth to 5:

 <map:pipeline>
           <map:match pattern="directory.xml">
              <map:generate type="directory" src="model" depth="5"/>
              <map:serialize type="xml"/>
           </map:match>
        </map:pipeline>

But it does not work, I always receive flat list, even if the subdirectory
is not empty:

<?xml version="1.0" encoding="UTF-8" ?>
 <dir:directory name="model" lastModified="1025423302000" date="30.06.02
11:48" requested="true" xmlns:dir="http://apache.org/cocoon/directory/2.0">
  <dir:directory name="rdf" lastModified="1025791300000" date="04.07.02
18:01" />
  <dir:file name="entry.xml" lastModified="1026028080000" date="07.07.02
11:48" />
  <dir:file name="map.xml" lastModified="1026409374000" date="11.07.02
21:42" />
  </dir:directory>

I will appreciate any help.

Best Regards,
Serge Chernokozinsky



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message