Terminology and id()

Hi Renat,

> terminology\xml\terminology1xmloutput.txt is incorrect due to known 
> defect of XPath support in MS .Net (id() function does not support xml:id)

We ran into the same problem with Java.

The work around we use is not perfect but it works in most cases:

If we detect "id(" in the XPath expression we run (once) an extra method that select all elements with 'xml:id' and use the method Element.setIdAttributeNS() to indicates that a given attribute is the ID for the given element. After that the expression works fine.

Maybe the .NET implementation of DOM has the same method. So maybe you can use a similar work around.

Let us know if you find a better way.
-yves

Received on Saturday, 19 January 2013 14:24:26 UTC