Ola Berg wrote:
> Being a user of the Cocoon XML-publishing feature, I have not thought
> of any improvements in the web-app/flowscript area.
>
> But here are some random thougths. The first two, I have to implement
> real soon.
>
> 1) XML directory generator
>
> Given a dir
>
> dir/ doc1.xml doc2.xml
>
> Where doc1 and doc2 contains a <title> element:
>
> <doc> <title>Document <number>1</number></title> ... </doc>
>
> I would like to write this in the sitemap:
>
> <map:generate type=\"xml-directory\" src=\"file:/path/to/dir\"
> xpath=\"/doc/title\"/>
>
> and get this from the serializer
>
> <dir:directory name=\"dir\" lastModified=\"1026478615000\"
> date=\"7/12/02 2:56 PM\" requested=\"true\"> <dir:file
> name=\"doc1.xml\" lastModified=\"1010746920000\" date=\"1/11/02 12:02
> PM\" content=\"Document 1\"/> <dir:file name=\"doc2.xml\"
> lastModified=\"1010746920000\" date=\"1/11/02 12:02 PM\"
> content=\"Document 2\"/> </dir:directory>
>
> Maybe one could do it more elaborate passing through markup in the
> extracted document snippet (using namespaces)
>
> <dir:file name=\"doc1.xml\" ...> Document <a:number>1</a:number>
> </dir:file>
Have a look at the XPathDirectoryGenerator in Cocoon, or Libre in
Forrest (http://outerthought.net/forrest/libre-intro.html)
</Steven>
--
Steven Noels http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
stevenn@outerthought.org stevenn@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
|