XPath generator
Friday, 17 November 2017 · 3 messages
GC
Giuseppe Celano17 Nov 2017 15:06 #
Hi All,
I would like to ask what the best way is in BaseX to create XPath expressions once I identify a certain span in an XML file. More concretely, I usually tokenize a text contained in an XML document, and I would like to specify for each token its position in the original document. Thanks.
Best,
Giuseppe
MH
Martin Honnen17 Nov 2017 15:13 #
Quoted text · Giuseppe Celano · 2 lines
On 17.11.2017 15:06, Giuseppe Celano wrote: > I would like to ask what the best way is in BaseX to create XPath expressions once I identify a certain span in an XML file. More concretely, I usually tokenize a text contained in an XML document, and I would like to specify for each token its position in the original document. Thanks.
KK
Kristian Kankainen17 Nov 2017 17:15 #
I don't know if it is the optimal solution in BaseX, but what functionality concerns, you can look at this functx function: http://www.xqueryfunctions.com/xq/functx_path-to-node-with-pos.html
For BaseX specifics, maybe this page can help you (sorry but I am not sure): http://docs.basex.org/wiki/Index
Best,
Kristian K17. nov 2017 4:06 PM kirjutas kuupäeval Giuseppe Celano <celano at informatik.uni-leipzig.de>:
Quoted text · Martin Honnen · 9 lines
> > Hi All, > > I would like to ask what the best way is in BaseX to create XPath expressions once I identify a certain span in an XML file. More concretely, I usually tokenize a text contained in an XML document, and I would like to specify for each token its position in the original document. Thanks. > > Best, > Giuseppe > >
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery