Subject: RE: [xsl] Pattern Matching in XSl - find groups defined in one Xml in another Xml. From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 23 Aug 2012 07:59:59 -0400 |
Thinking about it overnight I think I could get the search done by using two passes. Firstly the RE (or key) based search we've already seem some examples of. And then a second pass to check whether the groups have been found in thier entireties.
I'm about to try this latest example of yours. At a very quick glance I think I can see two passes.
<xsl:variable name="foundGroups" select="$groupedAlarms (:there can be no mis-matches:) [every $groupAlarm in alarm satisfies some $areaAlarm in $thisAlarmArea/alarm satisfies matches( $areaAlarm/@equipment, concat('^',$groupAlarm/@equipment,'$'))]"/>
every tuple-list in set satisfies boolean (all tests must be true() in order to return true())
some tuple-list in set satisfies boolean (any test must be true() in order to be true()
-- Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012 Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Pattern Matching in XSl -, Kerry, Richard | Thread | RE: [xsl] Pattern Matching in XSl -, Kerry, Richard |
RE: [xsl] Pattern Matching in XSl -, Kerry, Richard | Date | Re: [xsl] Pattern Matching in XSl -, Wendell Piez |
Month |