RE: [exslt] Proposal: has-name-match()
by Steve Derose other posts by this author
Jan 22 2007 9:31AM messages near this date
Re: [exslt] Proposal: has-name-match()
|
Re: [exslt] Proposal: has-name-match()
& XSLT Could you describe some use-cases you have in mind? Perhaps I'm being
dense, but I don't see the general application.... Typically I would do
similar things by qualifying the template's match parameter, but I can
imagine there might be cases where that's not feasible.
Steve
> -----Original Message-----
> From: "John L. Clark" [mailto:jlc6@[...].edu]
> Sent: Monday, January 22, 2007 10:10 AM
> To: list@[...].org
> Subject: [exslt] Proposal: has-name-match()
>
> I propose a new EXSLT function that might be called
> `has-name-match()`. The signature for this function would be
> similar to the following:
>
> boolean has-name-match(node-set a, node-set b, integer distance?)
>
> This function would examine the first node of both a and b
> and determine if the name of each element on the
> ancestor-or-self axis for each of these nodes is the same, up
> to distance from each node. More precisely,
> `has-name-match()` returns true if and only if
> (local-name(a) = local-name(b) and namespace-uri(a) =
> namespace-uri(b) and has-name-match(a/.., b/.., distance - 1)).
>
> Thoughts?
>
> Take care,
>
> John L. Clark
> _______________________________________________
> exslt mailing list
> list@[...].org
> http://www.exslt.org/list
>
_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
Thread:
John L. Clark
John L. Clark
Steve Derose
Michael Kay
Steve Derose
John L. Clark
Jim Fuller
|