W3C home > Mailing lists > Public > www-dom-ts@w3.org > February 2002

Re: Help wanted: A xslt transform for tests to HTML

From: Dimitris Dimitriadis <dimitris@ontologicon.com>
Date: Sun, 24 Feb 2002 13:39:26 +0100
Cc: "'www-dom-ts@w3.org'" <www-dom-ts@w3.org>
To: "Arnold, Curt" <Curt.Arnold@hyprotech.com>
Message-Id: <89F7EF08-2923-11D6-9A40-000393556882@ontologicon.com>
I'm currently on the road, I can have a go at this but not before Monday 
evening European time.
On Friday, February 22, 2002, at 09:22 , Arnold, Curt wrote:

> If anyone else would like to take it upon themselves to write a little 
> XSLT
> transform that would produce a reasonable HTML representation of a test
> definition in the next day or two, it would be appreciated.  Not 
> anything
> remotely as complex as test-to-java.xsl.
>
> Quick requirements:
>
> Output should be valid HTML
>
> Should be compatible with styles already used for test matrix, etc.
>
> Assertion elements should be addressable using a URL fragment, for 
> example,
>
> <assertEquals id="nameEqual" actual="name" expected='"newname"'/>
>
> Should be converted into something like:
>
> <a id="nameEqual">&lt;assertEquals id="nameEqual"...&gt;</a>
>
> Metadata links should have hyperlinks:
>
> 		<subject
> resource="http://www.w3.org/TR/1998/REC-DOM-
> Level-1-19981001/level-one-core#
> ID-35CB04B5"/>
>
> Should be converted to:
>
> &lt;subject resource="<a href="http://...">http:...</a>"/&gt;
>
> You'd probably want to lift the de-Xpointerizing logic from test-
> matrix.xsl
> so that exception clause references point to the attribute or method 
> and not
> an Xpointer that would not be interpreted by current browsers.
>
> I may try to write a simple test page harness this weekend and having 
> this
> transform would make it easy to link to the appropriate assertion 
> failure in
> the test definition and give me one less thing to do.
>
Received on Sunday, 24 February 2002 07:38:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:04 UTC