"bryan rasmussen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'll second the recommendation to use xsl-t, set the output to html.
>
>
> The code for an XSL-T to do it would be basically:
> http://www.w3.org/1999/XSL/Transform";
> version="1.0">
>
>
>
>
> you would probabl
Stefan Behnel wrote:
bryan rasmussen top-posted:
On Thu, Apr 24, 2008 at 9:55 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote:
from lxml import etree
tree = etree.parse("thefile.xhtml")
tree.write("thefile.html", method="html")
http://codespeak.net/lxml
wow, that's pr
bryan rasmussen top-posted:
> On Thu, Apr 24, 2008 at 9:55 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote:
>> from lxml import etree
>>
>> tree = etree.parse("thefile.xhtml")
>> tree.write("thefile.html", method="html")
>>
>> http://codespeak.net/lxml
>
> wow, that's pretty nice there.
>
wow, that's pretty nice there.
Just to know: what's the performance like on XML instances of 1 GB?
Cheers,
Bryan Rasmussen
On Thu, Apr 24, 2008 at 9:55 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> Tim Arnold wrote:
> > hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop
Tim Arnold wrote:
> hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to
> create CHM files. That application really hates xhtml, so I need to convert
> self-ending tags (e.g. ) to plain html (e.g. ).
This should do the job in lxml 2.x:
from lxml import etree
tr
I'll second the recommendation to use xsl-t, set the output to html.
The code for an XSL-T to do it would be basically:
http://www.w3.org/1999/XSL/Transform"; version="1.0">
you would probably want to do other stuff than just copy it out but
that's another case.
Also, from my recollecti
On 2008-04-24 19:16, John Krukoff wrote:
-Original Message-
From: [EMAIL PROTECTED] [mailto:python-
[EMAIL PROTECTED] On Behalf Of Tim Arnold
Sent: Thursday, April 24, 2008 9:34 AM
To: python-list@python.org
Subject: convert xhtml back to html
hi, I've got lots of xhtml pages that
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Tim Arnold
> Sent: Thursday, April 24, 2008 9:34 AM
> To: python-list@python.org
> Subject: convert xhtml back to html
>
> hi, I've got lots of xhtml pages t
Arnaud Delobelle wrote:
"Tim Arnold" <[EMAIL PROTECTED]> writes:
hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to
create CHM files. That application really hates xhtml, so I need to convert
self-ending tags (e.g. ) to plain html (e.g. ).
Seems simple enough, but I
"Arnaud Delobelle" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Tim Arnold" <[EMAIL PROTECTED]> writes:
>
>> hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop
>> to
>> create CHM files. That application really hates xhtml, so I need to
>> convert
>> self
"Gary Herron" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Tim Arnold wrote:
>> hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop
>> to create CHM files. That application really hates xhtml, so I need to
>> convert self-ending tags (e.g. ) to plain html (
"Tim Arnold" <[EMAIL PROTECTED]> writes:
> hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to
> create CHM files. That application really hates xhtml, so I need to convert
> self-ending tags (e.g. ) to plain html (e.g. ).
>
> Seems simple enough, but I'm having some tro
Tim Arnold wrote:
hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to
create CHM files. That application really hates xhtml, so I need to convert
self-ending tags (e.g. ) to plain html (e.g. ).
Seems simple enough, but I'm having some trouble with it. regexps trip up
hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to
create CHM files. That application really hates xhtml, so I need to convert
self-ending tags (e.g. ) to plain html (e.g. ).
Seems simple enough, but I'm having some trouble with it. regexps trip up
because I also have
14 matches
Mail list logo