ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
[exslt] Proposal: has-name-match()
by John L. Clark other posts by this author
Jan 22 2007 7:10AM messages near this date
RE: [exslt] Re: Proposal: has-name-match() | [exslt] Re: Proposal: has-name-match()
& XSLT 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:
John L. Clark
John L. Clark
Steve Derose
Michael Kay
Steve Derose
John L. Clark
Jim Fuller

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved