cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

XPATH with touch ups

Highlighted

XPATH with touch ups

Hi,

I have a problem concerning the xpath functions within Arbortext Editor. I use a valid xpath to get the OID with the acl function xpath_nodeset(..) but I recieve a wrong oid when I use processing instructions (touch ups).


This example should explain the problem:

<?Pub _font FontColor="#c61515"?>

 <ROW>
<CELL COL="1" TYPE="HEADER">Datum der Annahme des Beschlusses</CELL
>
<CELL COL="2"><DATE ISO="20100506">6.5.2010</DATE></CELL>
</ROW>

<?Pub /_font?>

With the function xpath_valid("(/ROW/CELL[2]") I receive true (1) but when trying to get the OID of this cell I have to use _font in my XPATH expression. But this should not act like this. The processing instruction is handled by Arbortext like a XML tag. xpath_nodeset($arr, "/ROW/CELL[2]") should return the OID of the cell and not xpath_nodeset($arr, "/_font/ROW/CELL[2]")!

Does anybody had the same problem or should I use a other function? I used the latest Version of Arbortext Editor but the behaivor of the function remains the same.

Greets,

Andreas

1 REPLY 1

Re: XPATH with touch ups

The problem could be fixed with a custom java solution.