You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Terry Brick <te...@yahoo.com> on 2004/06/09 07:15:05 UTC
"{../0}" "{../../locale}" - What is this stuff???
Hi,
I'm sure I'm being overlooking the obvious, but I just spent about 2 hours searching for
documentation on this stuff and I just can figure it out. It's frustrating because I know when I
first started playing with Cocoon, I saw some doc on this (although I didn't understand it at that
time either), but now I can't find it.
The following XML is extracted from the i18n example's sitemap.xmap. Could somebody please tell
me what the paths are referring to? What data they're working on, etc?
THanks!
<map:resources>
<!-- This resource is used to create a composite page from menu and content -->
<map:resource name="composite">
<map:aggregate element="root">
<map:part src="cocoon:/menu/{../0}"/>
<map:part src="cocoon:/content/{../0}" label="content"/>
</map:aggregate>
<map:transform type="xalan" src="simple2page.xsl">
<map:parameter name="page" value="{../0}"/>
<map:parameter name="locale" value="{../../locale}"/>
</map:transform>
<map:transform src="context://samples/common/style/xsl/html/complex-page2html.xsl">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize type="html"/>
</map:resource>
</map:resources>
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: "{../0}" "{../../locale}" - What is this stuff???
Posted by Antonio Gallardo <ag...@agssa.net>.
Hi:
See http://wiki.apache.org/cocoon/SitemapVariableSubstitution
Best Regards,
Antonio Gallardo
Terry Brick dijo:
> Hi,
> I'm sure I'm being overlooking the obvious, but I just spent about 2 hours
> searching for
> documentation on this stuff and I just can figure it out. It's
> frustrating because I know when I
> first started playing with Cocoon, I saw some doc on this (although I
> didn't understand it at that
> time either), but now I can't find it.
> The following XML is extracted from the i18n example's sitemap.xmap.
> Could somebody please tell
> me what the paths are referring to? What data they're working on, etc?
> THanks!
>
>
> <map:resources>
> <!-- This resource is used to create a composite page from menu and
> content -->
> <map:resource name="composite">
> <map:aggregate element="root">
> <map:part src="cocoon:/menu/{../0}"/>
> <map:part src="cocoon:/content/{../0}" label="content"/>
> </map:aggregate>
> <map:transform type="xalan" src="simple2page.xsl">
> <map:parameter name="page" value="{../0}"/>
> <map:parameter name="locale" value="{../../locale}"/>
> </map:transform>
> <map:transform
> src="context://samples/common/style/xsl/html/complex-page2html.xsl">
> <map:parameter name="contextPath" value="{request:contextPath}"/>
> </map:transform>
> <map:serialize type="html"/>
> </map:resource>
> </map:resources>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org