Subject: Re: [xsl] Testing for certain combinations From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx> Date: Thu, 08 Nov 2001 15:19:42 +0200 |
I need a way of testing whether or not I have 3 or more <a> links separated only by <br/> tags within a <p>. This is hard to explain so here are some examples:
This should test positive:
<p> <a href="urlwhatever">Labelwhatever</a><br/> <a href="urlwhatever">Labelwhatever</a><br/> <a href="urlwhatever">Labelwhatever</a><br/> </p>
This should test negative since there are only 2 links:
<p> <a href="urlwhatever">Labelwhatever</a><br/> <a href="urlwhatever">Labelwhatever</a><br/> </p>
This should also test negative since it contains text outside of <a>:
<p> See our great <a href="urlwhatever">products</a> or read <a href="urlwhatever">about us</a>. Feel free to <a href="urlwhatever">contact us</a> any time. </p>
-- Oleg Tkachenko Multiconn International, Israel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Testing for certain combi, Jeni Tennison | Thread | RE: [xsl] Testing for certain combi, Michael Kay |
Re: [xsl] Testing for certain combi, Jeni Tennison | Date | Re: [xsl] Testing for certain combi, David Carlisle |
Month |