创建新话题
已回答

Context and path language

I’m writing a report in which I use a Context. Is there a way to use path to traverse context and do some filtering?


最佳答案

Hi Martin,


Yes. Within a <ForEachInContext ...> you can traverse a Context by using <ForEach select=".."> or <If test="..."> or other tags that handles path. This is done by indicating that it is the Context that should be traversed by starting the path expression with "Context:" e.g. <Foreach select="Context:/back::docs/sections ...">.


Please let us know if that worked.


Regards

Martin

1 Comment

回答

Hi Martin,


Yes. Within a <ForEachInContext ...> you can traverse a Context by using <ForEach select=".."> or <If test="..."> or other tags that handles path. This is done by indicating that it is the Context that should be traversed by starting the path expression with "Context:" e.g. <Foreach select="Context:/back::docs/sections ...">.


Please let us know if that worked.


Regards

Martin

登录 发表评论