Re: Something I don't understand in xmlspec.xsl

>  the select section returns only
> the vc, excluding the wfc and com from being processed. Those are IMHO
> excluded due to the first [1] filter.

true, but the later siblings are picked up by the template for the
parent:


<xsl:template match="prod">
  <!-- select elements that start a row -->
  <xsl:apply-templates select="
    *[self::lhs or
      ( (self::vc or self::wfc or self::com) and
        not(preceding-sibling::*[1][self::rhs]) or
        (self::rhs and not(preceding-sibling::*[1][self::lhs]))
      )]"/>
</xsl:template>

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

Received on Tuesday, 13 February 2001 09:05:12 UTC