> I'm very newbie in cocoon. But before I very start in this nice
> framework. I want need to known something. After I read the book
> (Cocoon developper's handbook Moscar & Aston) I think it's possible,
> but I need a confirmation.
> 
> I have many files in a directory :
> 
>   News:
>    news1.xml
>    news2.xml
>    .....      
>    news100.xml
> 

There are two ways you can do this:

1) Use a directory generator, which identifies the files in the directory. Use XSLT to 
prepare this into a form usable by either a CInclude or XInclude transformer, which 
will include the content from these files. Then use XSLT to strip out only the content 
you want.

2) Use the XPathDirectoryGenerator, which allows you to get specific XPath nodes 
out of the files in the directory. I'm not sure if the XPathDirectoryGenerator is 
available in 2.0.4, or just in 2.1 - I've never actually used it, but if you can find 
it, it 
would be your best approach.

If you need more explanation, please let me know.

Regards, Upayavira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to