roxen.lists.roxen.general

Subject Author Date
Re: XPath results from a define David Hunter <dhunter[at]pauanui[dot]net[dot]nz> 05-10-2006
iv finally got round to upgrading to roxen 4.5.78.

im still having the same problem at this stage.

the below doesn't show results below the root node.
e.g. i have <pcheck .../> inside <div> & <if> child nodes.

and can access them if i explicitly specify 

<contents copy-of=".//if/pcheck"/>
<contents copy-of=".//div/pcheck"/>

but the <pcheck ../> tag could be in any child node or below.

<define container="pagepermissions" scope="pv">
<set variable="pv.item"><contents copy-of=".//pcheck"/></set>
&pv.item;
</define>

<pagepermissions>
<insert file="somefolder/subfolder/rxmlfile.inc"/>
</pagepermissions>



David Hunter
Webhaven Limited 
New Zealand


On Tue, 2006-09-19 at 08:19 +0200, Sascha Nemecek wrote:
> hi david,
> 
> 
> David Hunter wrote:
> > have got some code using 
> > <contents copy-of="<pcheck/[at]value>" result-set=""/>
> > in a define but it only returns results from root nodes.
> 
> i can confirm, that.
> 
> 
> > i tried <contents copy-of="<.//pcheck/[at]value>" result-set=""/>
> > but got no results..
> > am in using the wrong notation or is this feature not supported?
> > (using roxen server-4.0.325 on FC3)
> 
> if i'm not mistaken, the '//' notation is supported in roxen >= 4.5.
> 
> see http://community.roxen.com/developers/cvs/browse.html?file_id=121374
> v1.11.
> 
> 
> 
> hth,
> sascha
>