AW: AW: Copy atrribute


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

Received on Friday, 28 March 2025 11:58:32 UTC