Subject: Re: [xsl] Testing for certain combinations From: Michael Capalbo <mcapalbo@xxxxxxxxxxxx> Date: Thu, 08 Nov 2001 09:36:54 -0500 |
did you go to SUNY Albany? Neil Abraham wrote: > Hi all, > > 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> > > For those interested, I'm developing a stylesheet to transform our XML into > WML for UP browsers. The UP browser (eg Siemens and Motorola phones) > displays option lists better than link lists. Eg: > > <select> > <option onpick="urlwhatever">Labelwhatever</option> > <option onpick="urlwhatever">Labelwhatever</option> > <option onpick="urlwhatever">Labelwhatever</option> > </select> > > Thanks in advance for any help you can give me, > > Neil. > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list ******************************************************************************* <<Disclaimer>> This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL or both. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently deleting the copy you received. Thank you. ******************************************************************************* XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Testing for certain combi, Michael Kay | Thread | [xsl] Dynamic output dependant on e, Ian Blizard |
[xsl] XSL/FOP: Implementing a count, Rachael Blank | Date | Re: [xsl] HTML Tidy on FO files, Jörg Heinicke |
Month |