RE: [ISSUE-15] target-pointer

Hi Shaun,

> ...so my immediate thought is that I'd need a way
> to identify which elements are repeatable, in a 
> way that prescribes the elements to create, rather 
> than describes elements that already exist.
>
>  selector="//license[@xml:lang='en']" repeatable="yes"
>
> That would probably do it for me (not having tested 
> it in an actual working extension yet). But this 
> makes an assumption target-pointer doesn't, namely 
> that the other-language elements have the same name.

We would still have to decompose the XPath expression to guess "license", and the attribute to distinguish between language would have to be xml:lang.


> ...Indeed. You'd have to deconstruct the XPath to create 
> an element that would be selected by it. It's possibly doable
> if you restrict it to only relative location paths, not 
> full expressions.

I would assume the expression would be relative to the node selected for the source.


> I suspect you and I are looking at two related but
> very different sets of problems.

I'm not so sure. The goal seems the same: How to know where the target(s) element(s) is/are. But my initial thoughts didn't include multiple targets and a destination with multiple "trans-units". I think those are the more general use case, and the single target and/or single "trans-unit" are specific cases of it. There is probably a possible common solution.

Cheers,
-ys

Received on Tuesday, 15 May 2012 10:46:12 UTC