[Home] [By Thread] [By Date] [Recent Entries]
Kamal,
How about this idea? Create a variable containing the string value of an Element with its preceding-sibling::Element[1] (its immediate preceding sibling), concantenated in alphabetical order: <xsl:variable name="ordered-values"> <xsl:for-each select=". | preceding-sibling::Element[1]"> <xsl:sort data-type="text"/> <xsl:value-of select="."/> </xsl:for-each> </xsl:variable> <xsl:variable name="given-values" select="concat(preceding-sibling::Element[1],.)"/> <xsl:if test="not($given-values = $ordered-values)"> <xsl:text>A palpable hit!</xsl:text> <xsl:copy-of select="."/> </xsl:if> This is based on the principle that if an item is out of alphabetical order, it is out of alphabetical order in relation to its immediate predecessor. I hope this isn't the solution you didn't want us to tell you. Cheers, Wendell At 06:16 PM 9/23/2007, you wrote: Hi, ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|

Cart



