You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by qMax <qm...@mediasoft.ru> on 2005/02/02 10:51:02 UTC
Re[2]: how to use sitetree in cocoon modules
Wednesday, February 2, 2005, 2:27:41 PM, andreas@apache.org wrote:
AH> qMax wrote:
>> The task is to generate annotated table content of site section.
>>
>> The Right Thing should be to write something like Cocoon XPathDirectoryGenerator,
>> which will use sitetree to get children nodes and retrieve them properly.
>>
>> I guess i should write some xsp and access sitetree component(?) from it.
>> Where could i look for how to do it ?
>>
AH> Wouldn't it be sufficient to use XSLT and XInclude?
The only thing i see here is using Cocoon XPathDirectoryGenerator,
and then convert file pathes into document-id with xslt.
And what for is SiteTree input module ?
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re[2]: how to retrieve document source ?
Posted by qMax <qm...@mediasoft.ru>.
Wednesday, February 16, 2005, 12:41:13 AM, thomas.comiotto@unicom.unizh.ch wrote:
>>
>> But what is right way to form urls in cincludes to get xml source of
>> files ?
>>
CT> http://cocoon.apache.org/2.1/userdocs/transformers/cinclude-
CT> transformer.html
CT> You can fetch files by http, cocoon:// or read them from filesystem
CT> directly (usage: content/authoring/yourfile.xml)
Question was to map node pathes to file urls for cinclude.
it is solved with DocumentIndex transformer.
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: how to retrieve document source ?
Posted by Comiotto Thomas <th...@unicom.unizh.ch>.
>
> But what is right way to form urls in cincludes to get xml source of
> files ?
>
http://cocoon.apache.org/2.1/userdocs/transformers/cinclude-
transformer.html
You can fetch files by http, cocoon:// or read them from filesystem
directly (usage: content/authoring/yourfile.xml)
HTH
Thomas
> --
> qMax
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re[2]: how to retrieve document source ?
Posted by qMax <qm...@mediasoft.ru>.
Tuesday, February 15, 2005, 6:15:51 PM, andreas@apache.org wrote:
AH> qMax wrote:
>> Wednesday, February 2, 2005, 3:57:55 PM, andreas@apache.org wrote:
>> AH> Can't you use the sitetree as a basis for your page?
>> AH> sitetree ->> extend with XInclude statements -> XInlcudeTransformer
AH> You find some example code in the DocumentIndexTransformer.
This is exactly what i need.
I missed it since it is only (half) documented in javadoc.
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: how to retrieve document source ?
Posted by Andreas Hartmann <an...@apache.org>.
qMax wrote:
> Wednesday, February 2, 2005, 3:57:55 PM, andreas@apache.org wrote:
> AH> Can't you use the sitetree as a basis for your page?
> AH> sitetree ->> extend with XInclude statements -> XInlcudeTransformer
> I've got an idea.
>
> But what is right way to form urls in cincludes to get xml source of files ?
>
You probably have to implement a transformer.
Use publication.getDocumentBuilder().buildDocument() to build the
document object and document.getFile() to obtain the file.
You find some example code in the DocumentIndexTransformer.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
how to retrieve document source ?
Posted by qMax <qm...@mediasoft.ru>.
Wednesday, February 2, 2005, 3:57:55 PM, andreas@apache.org wrote:
AH> Can't you use the sitetree as a basis for your page?
AH> sitetree ->> extend with XInclude statements -> XInlcudeTransformer
I've got an idea.
But what is right way to form urls in cincludes to get xml source of files ?
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: how to use sitetree in cocoon modules
Posted by Andreas Hartmann <an...@apache.org>.
qMax wrote:
> Wednesday, February 2, 2005, 2:27:41 PM, andreas@apache.org wrote:
>
> AH> qMax wrote:
>
>>>The task is to generate annotated table content of site section.
>>>
>>>The Right Thing should be to write something like Cocoon XPathDirectoryGenerator,
>>>which will use sitetree to get children nodes and retrieve them properly.
>>>
>>>I guess i should write some xsp and access sitetree component(?) from it.
>>>Where could i look for how to do it ?
>>>
>
> AH> Wouldn't it be sufficient to use XSLT and XInclude?
> The only thing i see here is using Cocoon XPathDirectoryGenerator,
> and then convert file pathes into document-id with xslt.
That wouldn't be a clean solution as the mapping between
document IDs and file paths is handled by the
DocumentIdToPathMapper.
Can't you use the sitetree as a basis for your page?
sitetree -> extend with XInclude statements -> XInlcudeTransformer
> And what for is SiteTree input module ?
You can get the authoring and live node ...
Looks like it lacks some javadocs.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org