W3C home > Mailing lists > Public > spec-prod@w3.org > January to March 2001

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

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 13 Feb 2001 14:04:25 GMT
Message-Id: <200102131404.OAA05027@penguin.nag.co.uk>
To: Daniel.Veillard@imag.fr
CC: spec-prod@w3.org


>  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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:19:11 GMT