forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject Re: using DirectoryGenerator (Was: Using XML db as the source of xml files)
Date Thu, 06 Oct 2005 11:09:04 GMT

El jue, 06-10-2005 a las 12:45 +0200, Miroslav Mocek escribió:
> Even with serializer, the same error.
> 
> I'm trying now to svn up and start again.
> Mirek
> 
> 
> ><map:match pattern="my">
> >  <map:generate type="directory" src="my">
> >    <map:parameter name="depth" value="2"/>
> >  </map:generate>  
> >  <map:serialize type="xml" />  
> ></map:match>
> >

Make sure that the "my" dir is in the same level like the sitemap.

like:
.
|-- my
|-- content
|   |-- locationmap.xml
|   `-- xdocs
...
|       |-- tabs.xml
|       `-- ...
|-- resources
|   |-- schema
|   |   `-- catalog.xcat
|   |-- stylesheets
|   `-- templates
|-- sitemap.xmap
|-- skinconf.xml
`-- translations

Another example:
http://svn.apache.org/viewcvs.cgi/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap?view=markup
 <map:pipeline>
    <map:match pattern="ls.contracts">
      <map:generate type="directory" src="resources/templates">
        <map:parameter name="depth" value="1"/>
        <!-- sorted alphabetically -->
      	<map:parameter name="reverse" value="false"/>
      </map:generate>
      <map:serialize type="xml"/>
    </map:match>
  </map:pipeline>

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Mime
View raw message