Subject: Re: [xsl] XPath expression which converts the output of path() into an abbreviated path? From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 17 Aug 2022 12:45:26 -0000 |
Suggesting similar:
For variable $s with string text ...
tokenize($s, '/')[position() = (last()-2 to last())]!replace(., '.*\}(.*)\[.*', '$1')=>string-join('/')
Looks way better, I always feel I shoot myself into the foot if I need to mix ! and => and need a lot of parenthesis but your attempt seemed to elegantly avoid that problem.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPath expression which co, Alan Painter alan.pa | Thread | Re: [xsl] XPath expression which co, Martin Honnen martin |
Re: [xsl] XPath expression which co, Graydon graydon@xxxx | Date | Re: [xsl] XPath expression which co, Norm Tovey-Walsh ndw |
Month |