XPointer "data lineage"

gdalencon
Posts: 2
Joined: Fri Jul 12, 2013 6:13 pm

XPointer "data lineage"

Post by gdalencon »

Hello,

I don't know which name to put on my problem but I will try to be as clear as possible :)

I'm using oXygen 14.2 and I would like to have an XPointer data lineage (I don't know if it's called this way): I would like to know in which file(s) my XPointers are used, where is their source and what is their target.

I know I can use the "Find/Replace in Files..." to find the xml:id and the linkend but I would like to use a more user-friendly wat to do this.

Thanks,
Guillaume
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: XPointer "data lineage"

Post by adrian »

Hello,

Currently (v15.0) there is no better way to locate IDs and their references. Only the Find/Replace and Find/Replace in Files can do this via XPath.
However, we are planning to explicitly support searching references and declarations for ID/IDREFs in v15.x (v15.1 or v15.2). I've added your comments to our issue tracking tool and you will be notified when this gets implemented.

So, currently, with the Find/Replace tools you can search for a specific id with:
Text to find: myid
Enable 'Regular expression'
XPath: //@xml:id|//@linkend
or more precise:
Text to find: .*
Enable 'Regular expression'
XPath: //@xml:id['myid']|//@linkend['myid']

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
gdalencon
Posts: 2
Joined: Fri Jul 12, 2013 6:13 pm

Re: XPointer "data lineage"

Post by gdalencon »

Hello Adrian,

Thanks for your answer!

Regards,
Guillaume
Post Reply