I’m pretty sure the answer is “no”, but is there any way from BaseX 9.6 to get 
the source line number a given node starts on?

My use case is I’m looking for specific elements and making a report of 
documents that contain them and identifying information about the elements to 
help with finding them outside of BaseX (i.e., in Oxygen where the authoring 
happens). I’m parsing with the “trim whitespace” option turned off and I’m not 
doing any DTD-aware parsing, so the elements as loaded into the database will 
match the source (no additional attributes or anything). So at least in theory 
BaseX could maintain accurate line numbers.

These elements don’t have @id attributes so no natural way to identify them, so 
it would be useful to be able to report the source line number as a guide to 
people fixing these elements.

I didn’t see anything in the docs so I thought I’d ask just in case I’ve missed 
some trick.

Thanks,

E.
_____________________________________________
Eliot Kimber
Sr Staff Content Engineer
O: 512 554 9368
M: 512 554 9368
servicenow.com<https://www.servicenow.com>
LinkedIn<https://www.linkedin.com/company/servicenow> | 
Twitter<https://twitter.com/servicenow> | 
YouTube<https://www.youtube.com/user/servicenowinc> | 
Facebook<https://www.facebook.com/servicenow>

Reply via email to