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

Re: Error Text (was RE: Checker Home Page and Regular Teleconference Details)

From: Roland Gülle <roland@7val.com>
Date: Thu, 17 May 2007 20:21:57 +0200
Message-Id: <A39A9B25-B7B3-4CD7-8A58-3A5609853675@7val.com>
Cc: "Jo Rabin" <jrabin@mtld.mobi>, public-mobileok-checker@w3.org
To: Sean Owen <srowen@google.com>
Hi Sean,

> On 5/17/07, Jo Rabin <jrabin@mtld.mobi> wrote
>> Yes, I see the approach, but while I don't want to give away the
>> advantages of Java message bundles, I think the XSLT would be more
>> useful if it could be run independently of the framework. E.g.  
>> isomeone decided to generate a moki document, they could then run the
>> tests in turn by calling them from an XSLT, rather than from the
>> framework.
> In general, this is not going to be possible. Some bits of test logic
> that I've already run into (e.g. "if X, re-request the document with
> headers Y and Z") must be delegated to helper functions. This is part
> of why I've been tilting at the XSL solution for a while... it's
> seductive but you end up with a half-way solution which has
> disadvantages of both approaches.
> I still think the XSL solution is clean in many cases and we should
> proceed with it, but consider the stylesheets an implementation detail
> of the framework and not take undue pain to make them independently
> usable. Where they happen to be, great.

Jo starts with the idea to use xsl:import (or include) and I add the  
idea to use XInclude.
When writing the XSLT, I noticed that the XInclude have to be  
processing AFTER the transformation in a separate process.
To keep it easy, I used the document() XPath function.

If we want to generate a fallback message (for messages not special  
implemented in the language file),
my solution is the XInclude processing in a separate process.
OK, this is all possible with XSLT, with xsl:import... xsl:variable,  
with other frameworks,
but with document() or XInclude the messages can directly handled in  
the XSLT and the messages are xml.

Attached are both versions: document() and XInclude - lets find a  
solution ;-)


Received on Thursday, 17 May 2007 18:22:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:21:18 UTC