Start a new topic
Answered

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?


Best Answer

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

Answer

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

Login to post a comment