xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Retrieving the path from root of an Element
- From: Michael Kay <mike AT saxonica.com>
- To: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] Retrieving the path from root of an Element
- Date: Wed, 11 Jul 2012 12:51:44 +0100
On 11/07/2012 12:34, Benoît Thiébault wrote:
I would have prefered that function to be included in XOM... Isn't thereYes, there is another way. Use the XPath 2.0 expression
another way?
string-join(ancestor-or-self::*/name(), '/')
(You can run XPath 2.0 against XOM by using Saxon as your XPath engine).
Michael Kay
Saxonica
-
[XOM-interest] Retrieving the path from root of an Element,
Benoît Thiébault, 07/11/2012
-
Re: [XOM-interest] Retrieving the path from root of an Element,
Benoît Thiébault, 07/11/2012
-
Re: [XOM-interest] Retrieving the path from root of an Element,
Michael Kay, 07/11/2012
-
Re: [XOM-interest] Retrieving the path from root of an Element,
Benoît Thiébault, 07/11/2012
-
Re: [XOM-interest] Retrieving the path from root of an Element,
Michael Kay, 07/11/2012
- Re: [XOM-interest] Retrieving the path from root of an Element, Benoît Thiébault, 07/11/2012
-
Re: [XOM-interest] Retrieving the path from root of an Element,
Michael Kay, 07/11/2012
-
Re: [XOM-interest] Retrieving the path from root of an Element,
Benoît Thiébault, 07/11/2012
-
Re: [XOM-interest] Retrieving the path from root of an Element,
Michael Kay, 07/11/2012
-
Re: [XOM-interest] Retrieving the path from root of an Element,
Benoît Thiébault, 07/11/2012
Archive powered by MHonArc 2.6.24.