473,287 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Writing HTML

I've searched the standard library docs, and, while there are a couple
options for *reading* HTML from Python, I didn't notice any for
*writing* it. Does anyone have any recommendations (particularly ones
not listed on PyPI)?

Thanks
Jun 2 '08 #1
3 1317
On Mon, 02 Jun 2008 01:03:05 -0700, miller.paul.w wrote:
I've searched the standard library docs, and, while there are a couple
options for *reading* HTML from Python, I didn't notice any for
*writing* it.
I guess that's where the many templating engines are used.

Ciao,
Marc 'BlackJack' Rintsch
Jun 2 '08 #2
mi***********@gmail.com wrote:
I've searched the standard library docs, and, while there are a couple
options for *reading* HTML from Python, I didn't notice any for
*writing* it. Does anyone have any recommendations (particularly ones
not listed on PyPI)?

Thanks
My approach is usually to write the data-load in XML rather than
directly in HTML, and then use XSLT to produce the (X)HTML.

You can do the whole of this, or just the second part, using
FourSuite.

If the XML, later, needs to be changed, you can use FourSuite
to drill down to somewhere using XPath and change that
particular part.

But none of this is really specific to Python, its the
XML skill-set you really need.

Jun 2 '08 #3
On Jun 2, 6:11*am, Ken Starks <stra...@lampsacos.demon.co.ukwrote:
My approach is usually to write the data-load in XML rather than
directly in HTML, and then use XSLT to produce the (X)HTML.
That's a good idea I hadn't considered. Thanks!
Jun 2 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Christoph Bergmann | last post by:
Hi... We want to write an open source web based TEXT editor and would be happy about any help ;-) Please notice: We do NOT want to write a web based WEB editor, where you can edit a web...
385
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like...
17
by: Eric Lindsay | last post by:
Is learning to write CSS a better use of time than finding and using a package that produces complete web pages? I've moved to a new platform (Macintosh), taking with me about 400 personal web...
3
by: VMI | last post by:
I'm having trouble writing several records from an XML file into an html file. The problem is that it only outputs one record to the html file. I need to export all the records in the xml file to...
6
by: guy | last post by:
Does .NET have a class or set of functions that facilitate the creating and writing of html files? I have been creating files in streams and constructing html strings and writing them out but it...
2
by: Tony | last post by:
Yes, I need to specify a font type so that the characters will be evenly spaced when I write to a tab delimited text file. So how does one specify a font type to write/print and which font is...
102
by: Xah Lee | last post by:
i had the pleasure to read the PHP's manual today. http://www.php.net/manual/en/ although Pretty Home Page is another criminal hack of the unix lineage, but if we are here to judge the quality...
1
by: spohle | last post by:
hi, i use a lot the enumerate in my scripts and got really interested in possibly writing my own enumerate as an extension, for which i would want to extend it to be able to pass a start and...
1
by: webmaniac | last post by:
Hi, I am trying to write the content of one html page to another. But the problem is it overwrites everything that other html page has. For Example, I have two pages. One is 1.html & second is...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.