W3C home > Mailing lists > Public > public-mobileok-checker@w3.org > June 2007

Re: Mobile Checker not working

From: Sean Owen <srowen@google.com>
Date: Thu, 28 Jun 2007 12:33:36 -0400
Message-ID: <e920a71c0706280933i29ed8df8ob9bdefc985ceaedf@mail.gmail.com>
To: "Roland Gülle" <roland@7val.com>
Cc: "Laura Holmes" <holmes@google.com>, public-mobileok-checker <public-mobileok-checker@w3.org>
This seems kind of twisted -- build a result, then build it again in
order to add that attribute. If it works it works, and, I do think we
need to keep this attribute on the top-level tests element. But I do
think this shows why XSL is difficult to apply to this scenario.

Sean

On 6/28/07, Roland Gülle <roland@7val.com> wrote:
> ...
> <xsl:variable name="result">
> <!-- test results -->
>    <xsl:apply-templates/ select="/moki/primaryDoc/XHTMLDocInfo/
> docContent/html:html"/>
> </xsl:variable>
>
> <test name="...">
> <xsl:choose>
> <xsl:when test="exsl:node-set($result)//result[@outcome = 'FAIL']">
> <xsl:attribute name="outcome">FAIL</xsl:attribute>
> </xsl:when>
> ...
> <xsl:copy-of select="exsl:node-set($result)/node()"/>
>
> If this is OK, I add this syntax to one test as example.
Received on Thursday, 28 June 2007 16:33:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:13:03 GMT