[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Testing for certain combinations
Neil Abraham wrote:
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:
Stupid solution I only see is <xsl:choose> <xsl:when test="name(child::*[1]) = 'a' and name(child::*[2]) = 'br' and name(child::*[3]) = 'a' and name(child::*[4]) = 'br' and name(child::*[5]) = 'a' and name(child::*[6]) = 'br' and and count(*) = 6">Ok</xsl:when> <xsl:otherwise>Error</xsl:otherwise> </xsl:choose>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|