Subject: Re: [xsl] Template matching preceding-sibling. From: "Ilya Konanykhin" <ilya.konanykhin.ml@xxxxxxxxx> Date: Fri, 16 Nov 2007 11:24:08 +0600 |
You may or may not hear from Scott or Charles -- contributors to this list are often busy people, and can disappear for days at a time. It's a volunteer effort after all. :-)
That being said, a wise approach is always Caveat Emptor. Don't assume that we've actually run the code we're posting. I can't speak for Scott or Charles but I post untested code fairly frequently. I'm lucky it works as often as it does.
Accordingly, you might do best to assume that a helpful contributor has made an innocent mistake, and focus instead on the XSLT issues that concern or interest you. In other words, I think your supposition that list contributors may have tried to jump forward, deduce your problem and solve it, without testing their solutions, is entirely plausible.
Similarly, I can corroborate that Mike's suggestion of match="not(activity = preceding-sibling::Rec/activity)" is more likely to be the actual solution to a real-world problem than the more elaborate match pattern you posted. But that's in the general case. Only you can say what you need in your own case.
Regards, Ilya
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Template matching precedi, Wendell Piez | Thread | Re: [xsl] Template matching precedi, Wendell Piez |
RE: [xsl] How to make this script f, Michael Kay | Date | Re: [xsl] How to make this script f, Abel Braaksma |
Month |