> -----Message d'origine-----
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Date: mardi 16 juillet 2002 06:21
> À: [EMAIL PROTECTED]
> Objet: Depth in DirectoryGenerator
> 
> 
> 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

I am not sure, but I think I use the depth parameter this way:
  <map:pipeline>
            <map:match pattern="directory.xml">
               <map:generate type="directory" src="model">
                <map:parameter name="depth" value="5"/>
               </map:generate>
               <map:serialize type="xml"/>
            </map:match>
         </map:pipeline>

And it works.

---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

  • ... ROSSEL Olivier
    • ... Сергей Чернокозинский

Reply via email to