Altova Mailing List Archives

Re: n squared behavior with XT for 'preceding' tests?

From: David Carlisle <davidc@--------->
Date: 7/22/1999 2:22:00 AM
I wisely wrote 

> (and not try doing it at 0015 in the morning)

I less wisely did:





<xsl:stylesheet xmlns:xsl=""

<xsl:template match="*" >

<xsl:template match="mi" >
 <xsl:if test="not(from-preceding-siblings(*[position()=1 and  from-self(mi)]))">
     <xsl:apply-templates mode="grab" select="."/>

<xsl:template mode="grab" match="mi">
<xsl:param-variable name="x" expr="''"/>
  <xsl:when test="from-following-siblings(*[position()=1 and from-self(mi)])">   
     <xsl:apply-templates mode="grab" select="from-following-siblings(*[1])">
       <xsl:param name="x" expr="concat($x,.)"/>
     <mi><xsl:value-of select="concat($x,.)"/></mi>

 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.