Subject: Re: [xsl] XPath expression which converts the output of path() into an abbreviated path? From: "Norm Tovey-Walsh ndw@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 19 Aug 2022 09:32:01 -0000 |
"Joel Kalvesmaki director@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > Here's another approach, if the XPath expression has icaoCode as the > context. Forget about path(). Just string-join the local names of the > ancestors and self, e.g., > > string-join(for $i in (ancestor-or-self::* except /*) return > local-name($i), '/') Nice one, Joel! Be seeing you, norm -- Norman Tovey-Walsh <ndw@xxxxxxxxxx> https://nwalsh.com/ > Science is facts; just as houses are made of stones, so is science made > of facts; but a pile of stones is not a house and a collection of facts > is not necessarily science.--Henri Poincare [demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPath expression which co, Eliot Kimber eliot.k | Thread | [xsl] Including precediing-siblings, rick@xxxxxxxxxxxxxx |
Re: [xsl] XPath expression which co, Eliot Kimber eliot.k | Date | Re: [xsl] Including precediing-sibl, Martin Honnen martin |
Month |