Jeff Hooker wrote:
> Hi Hussein,
> 
> I've got an issue with a particular xpath command when attempting to use 
> applyProperty
> 
> <buttontoolTip="Hide Content"icon="../common/icons2/set_hide_conditions.gif">
> <commandname="execWithSelectedParams"
> parameter=";Hide Content;CTRL-click for multi-select;applyProperty;Hide 
> DIGI;(descendant::*|following::*)[contains(@arch, 'DIGI')] visible no"/>
> </button>
>  
> results in a message stating:
>  '(descendant::*|following::*)[contains(@arch, 'DIGI')] visible no'
> Invalid parameter:
> should be xpath_expr property_name [property_value]?

The error message seems correct. Command applyProperty expects 2 or 3
arguments. Because there is a space in
contains(@arch, 'DIGI'), applyProperty thinks you pass it 4 arguments.




> This happens when I use "contains" in the xpath rather than just 
> [...@arch='DIGI']
>  
> When I run the command manually in XMLmind, I get the same message.
>  
> I know I've seen this before; is there a fix?
>  

Please try:

<button
toolTip="Hide Content"
icon="../common/icons2/set_hide_conditions.gif">

<command name="execWithSelectedParams"
parameter=";Hide Content;CTRL-click for multi-select;applyProperty;Hide
DIGI;&quot;(descendant::*|following::*)[contains(@arch, 'DIGI')]&quot;
visible no"/>

</button>

Or simply suppress the space in:

contains(@arch, 'DIGI')


Reply via email to