XPATH with touch ups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The problem could be fixed with a custom java solution.
