forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <>
Subject Re: [jira] Commented: (FOR-250) only add the compliance logos if the html is valid
Date Thu, 19 Apr 2007 14:03:42 GMT
On Thu, 2007-04-19 at 05:56 -0700, Gavin (JIRA) wrote:
> [
> Gavin commented on FOR-250:
> ---------------------------
> Do you have any ideas for this at all?
> First, the xml,xdoc or whatever source file would need converting to (x)html, then sent
to the W3C for testing, depending on the result, how would be then add in the compliance logos,
a futher processing of the (x)html file to add it in?
> There are various things I've looked at so far.
> -- Calling the Validators API.
> -- The Web Service API
> -- Use Ant to validate against
W3C XML Schemas (probably not appropriate)
> -- Adapt and use this CPAN
Module , License Issue here or not ? I'ts a Perl file, can we get Ant to run this and depending
on result include or not the compliance logos.
> I'm in favour of the CPAN Module if the license allows us to.
> > only add the compliance logos if the html is valid

Like you described, you need to first produce the output, use the api to
validate it and if it is valid insert the logo.


The problem I see is that one would actually have to process the page 2
times which is not really nice. 

I would try with the web service since it is Java. The ant task could be
used when in "site" mode.


> > --------------------------------------------------
> >
> >                 Key: FOR-250
> >                 URL:
> >             Project: Forrest
> >          Issue Type: New Feature
> >          Components: Core operations
> >    Affects Versions: 0.6
> >            Reporter: David Crossley
> >             Fix For: 0.9-dev
> >
> >
> > Currently the compliance logos are only applied to any page called "index.html".
It would be nice if we could automatically determine if the final output was valid and apply
the compliance logos accordingly.
Thorsten Scherler                       
Open Source Java & XML                consulting, training and solutions

View raw message