Re: AW: Copy atrribute

Denis,

Before I say how I have been doing it, I'd love to hear what the 'correct'
way to do it might be.

Phrased again: given the output of p:directory-list, what is the easiest
way to expand all the paths such that any of its c:file contents can easily
be opened?

Or alternatively - whether expanding the paths or by other means, what is
the easiest way to get at and open each or any c:file in a c:directory
listing?

There might be a better way than mine and I'd love to know.

Regards, Wendell


On Fri, Mar 28, 2025 at 7:58 AM <denis.maier@unibe.ch> wrote:

>
>
> *Von:* Wendell Piez <wapiez@wendellpiez.com>
> *Gesendet:* Dienstag, 25. März 2025 12:29
> *An:* Norm Tovey-Walsh <ndw@nwalsh.com>
> *Cc:* Maier, Denis Christian (UB) <denis.maier@unibe.ch>; xproc-dev@w3.org
> *Betreff:* Re: AW: Copy atrribute
>
>
>
> Hello again,
>
>
>
> Until I found a better way I was doing this:
>
>
>
> <p:directory-list />
>
>
>
> <p:label-elements match="c:file" attribute="path"
> label="ancestor-or-self::*/@name => string-join('/')"/>
>
>
>
>
>
> How do you do it now?
>
>
>
>
>
> […]
>
>
>
> If p:add-attribute had a 'calculated-value' in addition to (perhaps
> overriding) 'attribute-value', for an XPath to be evaluated in the context
> of the element being matched, we'd be done (wouldn't we?), […]
>
>
>
> Yes, that sounds good.
>
>
>
> Best,
>
> Denis
>


-- 
...Wendell Piez... ...wendell -at- nist -dot- gov...
...wendellpiez.com... ...pellucidliterature.org... ...pausepress.org...
...github.com/wendellpiez... ...gitlab.coko.foundation/wendell...

Received on Friday, 28 March 2025 15:59:19 UTC