Mark Carlson
Moderator Username: mcarlson Post Number: 526
Registered: 03-2003  Rating: N/A Votes: 0 (Vote!) | | Posted on Monday, October 11, 2004 - 05:34 pm: |
|
I learned recently that XQL also supports regular expressions.
//aspectRegistry/aspect[pointcut/name[regex("mdc")]]/aspectData/name/text() Returns the aspect names of all aspects whose pointcut/name elements contains a name elements that start with "mdc". You can also combine regex patterns for more complex queries:
//aspectRegistry/aspect[pointcut/name[regex("mdc.demo")]][pointcut/adviceType='before']/aspectData/serviceName The second query returns only the serviceNames where the adviceType is "before" and the pointcut/name elements contain the string "mdc.demo". Mark
|