hi *!

i thought i'd better revive this old thread instead of starting a new one:

Thorsten Scherler wrote:
El mié, 04-01-2006 a las 13:22 +0000, [EMAIL PROTECTED] escribió:
Author: thorsten
Date: Wed Jan  4 05:21:44 2006
New Revision: 365905

URL: http://svn.apache.org/viewcvs?rev=365905&view=rev
Log:
added the lenya meta data generator. It is an abstract generator that can 
produce the metadata to any given docid. Added an example how one can use it 
within the tutorial.html (only in english).

Hi all,

I checked in a meta data generator. I needed to extend the metaData
interface and update some other classes.

The generator will get the custom, dublin and lenya meta data and
generate a xml file with it. The generator is connecting each
implementation and gets the meta data. It is *not* directly contacting
the *_*.xml.meta to be able to ease the switch to jcr (where I assume we
will not have such file anymore.)

Please test the new generator and report bugs to our issue tracker and
problems to this list.
I added a small example to the default pub (tutorial.html -> eng only)
which is actually only a showcase.
salu2

i just played around with the generator. since i want to access the metadata from my page2shtml.xsl, i added the following to my publication sitemap:
<map:match pattern="lenyabody-*/*/*/*/**">
 <map:aggregate element="cmsbody">
  <map:part src="cocoon://modules/sitetree/{2}/{3}/breadcrumb/{5}.xml"/>
  <map:part src="cocoon://modules/sitetree/{2}/{3}/tabs/{5}.xml"/>
  <map:part src="cocoon://modules/sitetree/{2}/{3}/menu/{5}.xml"/>
  <map:part src="cocoon://modules/sitetree/{2}/{3}/search/{5}.xml"/>
  <map:part
       src="cocoon:/{2}/{3}/meta?docid={page-envelope:document-id}"/>
  <map:part src="{resource-type:format-xhtml}"/>
...



i came across two issues i don't understand:

(1) why are namespaces stripped by default? i had to comment out
 <map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
later in the pipeline to get the lenya: prefix back.


(2) what is the format of <lenya:workflowVersion/> ? is there any way to get the information in sane xml? the information i want to extract is "page last updated on <date> by <user>". would be simple by accessing the metadata files directly, but i'm listening to andreas' advice and try not to bypass the lenya api...


regards,


jörn



--
"Open source takes the bullshit out of software."
        - Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736

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

Reply via email to