You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Colm O'Riordan <co...@communicraft.com> on 2002/03/01 01:03:15 UTC
Old Content to XHTML
Hi Guys,
I was wondering whether anyone knows of an effective way of converting
old html content, from a content management system into Valid XML /
XHTML ? I know its slightly outside the biref of this list but it
relates to using old content within a Cocoon project and I need to find
the most cost effective way of doing a batch job to see if there is a
way of avoiding a manual file by file migration.
Suggestions appreciated.
All the best,
ColmOR.
--
Colm O'Riordan | Director
Communicraft
mobile: 353 86 2225078
web: www.communicraft.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Old Content to XHTML
Posted by Tony Collen <tc...@hist.umn.edu>.
Colm O'Riordan wrote:
>Hi Guys,
>
>I was wondering whether anyone knows of an effective way of converting
>old html content, from a content management system into Valid XML /
>XHTML ? I know its slightly outside the biref of this list but it
>relates to using old content within a Cocoon project and I need to find
>the most cost effective way of doing a batch job to see if there is a
>way of avoiding a manual file by file migration.
>Suggestions appreciated.
>
Tidy should do the trick:
http://www.w3.org/People/Raggett/tidy/
Regards,
Tony
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Old Content to XHTML
Posted by Carlos <ca...@cvc.edu>.
Tidy does a pretty good job of it
Caros
On 02/28/02 16:03, "Colm O'Riordan" <co...@communicraft.com> wrote:
> Hi Guys,
>
> I was wondering whether anyone knows of an effective way of converting
> old html content, from a content management system into Valid XML /
> XHTML ? I know its slightly outside the biref of this list but it
> relates to using old content within a Cocoon project and I need to find
> the most cost effective way of doing a batch job to see if there is a
> way of avoiding a manual file by file migration.
> Suggestions appreciated.
>
> All the best,
>
> ColmOR.
>
> --
> Colm O'Riordan | Director
> Communicraft
> mobile: 353 86 2225078
> web: www.communicraft.com
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
--
Carlos E. Araya
---+ WebCT Administrator/Trainer
P | California Virtual Campus
- | C/O De Anza College
G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014
email carlos@cvc.edu
web http://www.cvc1.org/ (work)
http://www.silverwolf-net.net (personal)
phone 408 257 0420 (work)
PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756
Hey! It compiles! Ship it!
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Old Content to XHTML
Posted by Bert Van Kets <be...@visitronics.be>.
I'd suggest Tidy (http://sourceforge.net/projects/tidy) or JTidy
(http://sourceforge.net/projects/jtidy) from Sourceforge. You can
configure them to adjust errors found in the source HTML.
Come to think of it. Has anyone thought of implementing JTidy in the
standard html serialiser to minimize the bytes sent to the browser? JTidy
can filter out all the unnecessary whitespace in the html. This can mean
an average saving of 20% on the downloaded file size (read: a download
speed increase of 20%!!)
Bert
At 18:03 28/02/2002 -0600, you wrote:
>Hi Guys,
>
>I was wondering whether anyone knows of an effective way of converting
>old html content, from a content management system into Valid XML /
>XHTML ? I know its slightly outside the biref of this list but it
>relates to using old content within a Cocoon project and I need to find
>the most cost effective way of doing a batch job to see if there is a
>way of avoiding a manual file by file migration.
>Suggestions appreciated.
>
>All the best,
>
>ColmOR.
>
>--
>Colm O'Riordan | Director
>Communicraft
>mobile: 353 86 2225078
>web: www.communicraft.com
>
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Validate xhtml
Posted by Nicola Ken Barozzi <ba...@nicolaken.com>.
From: "Stephen Ng" <st...@verizon.net>
> Right now Cocoon takes (possibly malformed?) html, and runs it through a
> program to tidy up the html before shooting it to the browser.
And also does extra checking that JTidy doesn't do on duplicate attributes.
This *does* excat in a performance penalty, so if you are sure that your
html is xhtml, you should go with the default (xml)file Generator.
> I would like to do something like the opposite of that. I believe my
> code already generates valid xhtml, and don't need to take the extra
> processing time to have it cleaned up. Presumably I can do this by
> using the xml serializer, but changing the output type to html?
JTidy is run in the HTML Generation step. The output is -of course- correct
xml since Cocoon SAX pipeline processed it.
> But I would like to go further than this and have a transformer which
> checks my xhtml against a dtd, and give me an error if it is
> nonconformant. (I'd use the transformer only during development).
>
> Has anyone ever tried this?
AFAIK, conformance checking is done on parsing, ie Generation time. To do
this without using a Transformer, you can just have a "development" pipeline
that Generates from the results of the pipeline you want to check for
conformance.
--
Nicola Ken Barozzi barozzi@nicolaken.com
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Validate xhtml
Posted by Stephen Ng <st...@verizon.net>.
Right now Cocoon takes (possibly malformed?) html, and runs it through a
program to tidy up the html before shooting it to the browser.
I would like to do something like the opposite of that. I believe my
code already generates valid xhtml, and don't need to take the extra
processing time to have it cleaned up. Presumably I can do this by
using the xml serializer, but changing the output type to html?
But I would like to go further than this and have a transformer which
checks my xhtml against a dtd, and give me an error if it is
nonconformant. (I'd use the transformer only during development).
Has anyone ever tried this?
Steve
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RES: Old Content to XHTML
Posted by Gustavo Fernandes <gu...@eccentia.com>.
Take a look at the HTML generator.
"The html generator reads an html document from the local file system or
from any url. It acts similar to the file generator with the difference that
it reads html documents and converts them using jtidy to xhtml."
-----Mensagem original-----
De: Colm O'Riordan [mailto:colmor@communicraft.com]
Enviada em: quinta-feira, 28 de fevereiro de 2002 21:03
Para: cocoon-users@xml.apache.org
Assunto: Old Content to XHTML
Hi Guys,
I was wondering whether anyone knows of an effective way of converting
old html content, from a content management system into Valid XML /
XHTML ? I know its slightly outside the biref of this list but it
relates to using old content within a Cocoon project and I need to find
the most cost effective way of doing a batch job to see if there is a
way of avoiding a manual file by file migration.
Suggestions appreciated.
All the best,
ColmOR.
--
Colm O'Riordan | Director
Communicraft
mobile: 353 86 2225078
web: www.communicraft.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>