"Dave Pawson" <[EMAIL PROTECTED]> writes:

> On 10/07/06, Nic James Ferrier <[EMAIL PROTECTED]> wrote:
>
>> Hmmm... Maybe. But I don't see that this is ever going to be a
>> generalized converter from HTML to OO. I see it as a step in a
>> specific pipeline requiring quite good HTML. A very adaptable
>> generalized converter will need mapping support between HTML and OO
>> and that will be complicated. More complicated than I want anyway.
> At least tagsoup allows xml (xslt) transforms? Hence the
> suggestions.

Ok. I hadn't really thought about it... I think a wrapper tool might
be interesting. As you say, maybe you could play with the xslt and
then show us how it works with tagsoup.


>> I can then use html2oo.xslt to tranfer that into OO and from there get
>> Word or anything else that OO can spit out.

> Sorry Nic, I'm not a micro formats user

You don't have to be. HTML is just HTML. My XOXO to HTML transform
could easily be any wiki transform or any other process that produces
relatively normalized HTML.


>> But now I would just have a single HTML design with a CSS providing
>> the look for the web pages and html2oo.xslt producing Word (via
>> OpenOffice).
>
> I guess I'm more cynical than you?
> I was thinking html in the wild?

I don't _think_ that will ever work. HTML is too varied, especially
with the addition of DIV and SPAN.

But simple HTML is not varied. Everyone knows what UL and P and DT/DL
mean. They have simple, widely understood, semantics. The semantics
are shared by OO so why not do the simple thing.

If you have complex HTML you can of course transform it to simple HTML
and thence to OO.


>> Right now, I'm controlling the resulting OO file with a Makefile that
>> looks like this:
>
> Ouch. You found one of my blind spots.
> make never meant anything to me

It just updates the content.xml in the OO file with the output of the
XSLT.


>> If I setup a darcs (http://abridgegame.org/darcs/) repository for this
>> would anyone contribute do you think? Would you?
>
> I'll try anything once!
>    let you know.

I made a darcs module and put the stylesheet in it. You can find it
here:

   http://www.tfnet.co.uk/repos/

-- 
Nic Ferrier
http://www.tapsellferrier.co.uk   for all your tapsell ferrier needs

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to