forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thorsten.scherler....@juntadeandalucia.es>
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:
> [ https://issues.apache.org/jira/browse/FOR-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490018
] 
> 
> 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.
> 
> http://validator.w3.org/docs/users.html#API -- Calling the Validators API.
> http://validator.w3.org/docs/api -- The Web Service API
> http://ant.apache.org/manual/OptionalTasks/xmlvalidate.html -- Use Ant to validate against
W3C XML Schemas (probably not appropriate)
> http://search.cpan.org/dist/WebService-Validator-HTML-W3C/ -- 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.

BUT

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.

salu2


> > --------------------------------------------------
> >
> >                 Key: FOR-250
> >                 URL: https://issues.apache.org/jira/browse/FOR-250
> >             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                                 thorsten.at.apache.org
Open Source Java & XML                consulting, training and solutions


Mime
View raw message