[exslt] Re: Proposal: has-name-match()
by Dimitre Novatchev other posts by this author
Jan 25 2007 10:14AM messages near this date
[exslt] Trying to use regexp
|
RE: [exslt] Re: Proposal: has-name-match()
& XSLT Why should this be *an extension function* ?
It is *most regular* XSLT 1.0 functionality to provide a match pattern in
the "match" attribute of xsl:template
Also, in my 7 years od monitoring the xsl-list this is the first time such a
feature request has occured -- therefore the question to ask is what are any
possible use-cases for he proposed extenion function?
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
""John L. Clark"" <jlc6@[...].edu> wrote in message
news:4fb69e5d0701220710n6a3547f2w666b4f0e32237583@[...]..
> 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
Thread:
Dimitre Novatchev
Steve Derose
|