You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joerg Heinicke <jo...@gmx.de> on 2003/03/04 00:50:47 UTC

Re: DirectoryGenerator depth attrib (newbie)

hi Mark,

Mark Anquoe wrote:
> ok I've started pulling my hair out. I am really having problems getting 
> the DirectoryGenerator to display anything more than the contents of the 
> current directory. I can't seem to get the depth attribute to do anything.

we never had any problem with it.

> I modified my just installed sitemap directory matching to look like this:
> 
>   <map:match pattern="**/">
>    <map:generate src="{1}" type="directory">             <map:parameter 
> name="depth" value="3"/>
>    </map:generate>
>      <map:transform src="stylesheets/system/directory2html.xsl"/>
>    <map:serialize/>            </map:match>
> 
> now shouldn't I be seeing 3 levels deep into the directory tree?
> does directory2html.xsl not allow for more than one level?
> how can I see the sax events being served to the xsl page to know where 
> the problem is?

Simply remove the transformer and change the type of the serializer to xml.

Joerg

> thanks everyone
> mark


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