Subject: Re: [xsl] Performance of link target search, and Normalising or collapsing a pathname value, best method? From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 22 Sep 2023 12:32:19 -0000 |
On 22/09/2023 14:31, Martin Honnen martin.honnen@xxxxxx wrote: > > > On 22/09/2023 14:28, Martin Honnen martin.honnen@xxxxxx wrote: >> >> >> On 22/09/2023 14:09, Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx wrote: >>> >>> But if any file is not then this code produces verified/adjusted >>> links where the srcfile may be something like >>> "../../A/../B/../C/ccc.xml#xyz" >>> >>> Is there a simple way of normalising that path? If necessary I can >>> probably write my own but there may be a function which already does >>> it that I don't know about. >>> >> >> You haven't shown how the normalized path would look like but I don't >> know any such functions in the XPath 3.1 library, XProc 3 has some >> https://spec.xproc.org/3.0/xproc/#f.urify which might or might not help. >> > > https://www.saxonica.com/html/documentation12/functions/expath-file/resolve-p ath.html > might also help. > Or perhaps https://www.saxonica.com/html/documentation12/functions/expath-file/path-to-n ative.html even more.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Performance of link targe, Martin Honnen martin | Thread | Re: [xsl] Performance of link targe, Dave Pawson dave.paw |
Re: [xsl] Performance of link targe, Martin Honnen martin | Date | Re: [xsl] Performance of link targe, Dave Pawson dave.paw |
Month |