Re: XInclude in sitemap.xmap

Francesco Chicchiriccò <[email protected]>
Newsgroups gmane.text.xml.cocoon.user
Message-ID <[email protected]>
On 13/11/2012 05:49, Mansour Al Akeel wrote:
> I am doing two project.
> A personal one with C3.0, and one for a product, and using C2.2.
> This issue is happening with C3.0.
>
> I didn't get a chance to test the files you sent me.

Ok, take a look there, then: using the XInclude transformer should be
pretty straightforward.

> However, from the logs (which are really hard to read), it looks like I am having issues with the baseUrl.
> I looked into the source, and tried to set baseUrl="full-path-to-my-repo", but that didn't work either.

Again, please take a look at [1] and [2].

> Would be nice to see a document describing the attributes to be set on each transformer.

XInclude transformer hasn't changed much since C2.1 [3] / C2.2 [4].

> A clear error message can be a lot of help as well.

Definitely: in your case, though, I suspect that something really
"basic" is getting wrong.

Please share your files if you'd like to get more in-depth help.

Regards.

> On Mon, Nov 12, 2012 at 2:23 AM, Francesco Chicchiriccò
> <[email protected]> wrote:
>> On 12/11/2012 07:59, Mansour Al Akeel wrote:
>>> Here's what I am doing:
>>>
>>>      <map:match pattern="article/{id}">
>>>               <map:generate src="{global:base.repo.path}/articles/{map:id}/index.xml" />
>>>               <map:transform type="xinclude" />
>>>               <map:serialize type="xhtml"  />
>>>
>>> and this is error:
>>> [...]
>> Hi,
>> did you take a look at sample sitemap.xmap [1] (around line 387) and
>> specifically xinclude.xml [2]?
>>
>> BTW: which version are you running? From the reported stacktrace I
>> understand C3, but some of your earlier questions were referring to C2.2....
>>
>> Regards.
>>
>> [1] https://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap
>> [2] https://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/aggregation/xinclude.xml
[3] http://cocoon.apache.org/2.1/userdocs/xinclude-transformer.html
[4] http://cocoon.apache.org/2.2/core-modules/core/2.2/985_1_1.html

-- 
Francesco Chicchiriccò

ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.