cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmauki...@s-und-n.de
Subject Re: getting a folder to be seen
Date Fri, 28 Feb 2003 08:05:19 GMT

Hi,

> how do i get cocoon to recognize that I have a folder with XML files
> that I want parsed and shown on a website in its folder?

Don't know if i got the point but I've to possible answers :-)

Do you want to show all the xml files in the folder at the same time ?
If yes, you can use the Directory Generator
(http://xml.apache.org/cocoon/userdocs/generators/directory-generator.html)
and the cinclude Transformer to do this.

Or do you want that you just can point to one xml file in the folder like
this:
http://foo.bar/cocoon/myapp/myfolder/my.xml ?

Then you can use a pipeline:

<map:match pattern="myfolder/*">
     <map:generate src="{1}"/>
     <map:transform src="mystyle.xsl"/>
     <map:serialze/>
</map:match>

I hope that one of these answers fits to your question ;-)

kind regards
Jens Maukisch
-------------------------------------------------
s&n AG
netBank solutions
Klingenderstr. 5    mailto:jmaukisch@s-und-n.de
D-33100 Paderborn   http://www.s-und-n.de
-------------------------------------------------
CeBIT 2003 * Hannover * 12.-19.3.2003
Besuchen Sie uns auf dem Stand der Software AG
Halle 18 EG * Bank-Finanz-Systeme * Stand A24.15
-------------------------------------------------


---------------------------------------------------------------------
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