> This was very straightforward to write & test in the GUI indeed; sorry to 
> come back to you however...
> we have implemented the global search for element (based on one particular 
> attribute value).
> 
> Everything seems to be correct; excerpt of the macro trace below:
> (starting from the value returned from "pick"):
> 
> <--search.parameter:command: execution result='nx'
> -->search.parameter:command: checking...
>    xpathSearch "//*[@Name = 'nx']"
> <--search.parameter:command: CANNOT EXECUTE
> 
> But the last Xpath search fails, although it seems to be a perfectly
> valid search 
> (i.e. searching for all element whose @Name attribute is equals to
> 'nx').
> 
> The same Xpath expression ("/*[@Name = 'nx']") entered as-is in the
> Avanced Tab of the element search dialog works fine.
> Many thanks for your help,
> Best regards. 


Dear M. Shafie,


Forget about the above; it happens only upon document opening : if no
view has ever been selected with the mouse, then the "/" context seems
not to be initialized and the Xpath search fails. If we just click in
the view, it works as expected.

One last thing is missing to complete the picture gracefully: we would
like this search to be recorded as if we had been using the element
Search tool to allow our users to re-search using Esc-g. If there any
way to do this ?

Many thanks,
Best regards.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to