[Zope] ZPT code sample

2005-06-21 Thread John Poltorak

Is there anything wrong with this ZPT code sample?

http://www.zopemag.com/Issue003/Section_Articles/article_ZPTintro_code.html

I get this error message when trying to save it:-

HTMLParser.HTMLParseError: malformed start tag, at line 8, column 37

-- 
John


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZPT code sample

2005-06-21 Thread Fred Drake
On 6/21/05, John Poltorak [EMAIL PROTECTED] wrote:
 Is there anything wrong with this ZPT code sample?
 
 http://www.zopemag.com/Issue003/Section_Articles/article_ZPTintro_code.html
 
 I get this error message when trying to save it:-
 
 HTMLParser.HTMLParseError: malformed start tag, at line 8, column 37

The cited line contains a typo; it uses  instead of  to end a tag.


  -Fred

-- 
Fred L. Drake, Jr.fdrake at gmail.com
Zope Corporation
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZPT code sample

2005-06-21 Thread Andreas Jung



--On 21. Juni 2005 11:58:52 -0400 Fred Drake [EMAIL PROTECTED] wrote:


On 6/21/05, John Poltorak [EMAIL PROTECTED] wrote:

Is there anything wrong with this ZPT code sample?

http://www.zopemag.com/Issue003/Section_Articles/article_ZPTintro_code.h
tml

I get this error message when trying to save it:-

HTMLParser.HTMLParseError: malformed start tag, at line 8, column 37


The cited line contains a typo; it uses  instead of  to end a tag.



...which is obvious when you look in line 8 carefully.

-aj



pgpORSvdgcBwe.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZPT code sample

2005-06-21 Thread John Poltorak
On Tue, Jun 21, 2005 at 06:07:36PM +0200, Andreas Jung wrote:
 
 
 --On 21. Juni 2005 11:58:52 -0400 Fred Drake [EMAIL PROTECTED] wrote:
 
  On 6/21/05, John Poltorak [EMAIL PROTECTED] wrote:
  Is there anything wrong with this ZPT code sample?
 
  http://www.zopemag.com/Issue003/Section_Articles/article_ZPTintro_code.h
  tml
 
  I get this error message when trying to save it:-
 
  HTMLParser.HTMLParseError: malformed start tag, at line 8, column 37
 
  The cited line contains a typo; it uses  instead of  to end a tag.
 
 
 ...which is obvious when you look in line 8 carefully.

It may well be obvious to anyone familiar with these things, but when you 
are struggling to understand them, the last thing you need when you are 
going through the most basic example is a typo in the example itself.

I keep wondering whether ZOPE is sponsored by wig makers...

 
 -aj
 



-- 
John


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZPT code sample

2005-06-21 Thread J Cameron Cooper

John Poltorak wrote:

On Tue, Jun 21, 2005 at 06:07:36PM +0200, Andreas Jung wrote:

--On 21. Juni 2005 11:58:52 -0400 Fred Drake [EMAIL PROTECTED] wrote:


On 6/21/05, John Poltorak [EMAIL PROTECTED] wrote:


Is there anything wrong with this ZPT code sample?

http://www.zopemag.com/Issue003/Section_Articles/article_ZPTintro_code.h
tml

I get this error message when trying to save it:-

HTMLParser.HTMLParseError: malformed start tag, at line 8, column 37


The cited line contains a typo; it uses  instead of  to end a tag.


...which is obvious when you look in line 8 carefully.


It may well be obvious to anyone familiar with these things, but when you 
are struggling to understand them, the last thing you need when you are 
going through the most basic example is a typo in the example itself.


That problem that has nothing to do with any of the dynamic elements in 
the page. Such a typo would bork any tag-based language.


You're not learning HTML at the same time as ZPT, are you?

One should know HTML before dealing with any HTML templating language. I 
dare say it's a fool's errand to try  to learn ZPT unless you have an 
understanding of HTML and XML-sh languages in general.



I keep wondering whether ZOPE is sponsored by wig makers...


Now that you know, you should notify the author/site and get it fixed.

--jcc

--
Building Websites with Plone
http://plonebook.packtpub.com/

Enfold Systems, LLC
http://www.enfoldsystems.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZPT code sample

2005-06-21 Thread Andreas Jung



--On 21. Juni 2005 19:37:35 +0100 John Poltorak [EMAIL PROTECTED] wrote:

On Tue, Jun 21, 2005 at 06:07:36PM +0200, Andreas Jung wrote: It may 

well be obvious to anyone familiar with these things, but when you

are struggling to understand them, the last thing you need when you are
going through the most basic example is a typo in the example itself.

I keep wondering whether ZOPE is sponsored by wig makers...



I don't know what a wig maker is but when you work with ZPT you should have 
a certain knowledge in HTML and finding unmatched tag ends is something I 
consider really basic and which is support by nearly every text editor.


-aj


pgp9qOXH35Ej1.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZPT code sample

2005-06-21 Thread John Poltorak
On Tue, Jun 21, 2005 at 10:25:24PM +0200, Andreas Jung wrote:
 
 
 --On 21. Juni 2005 19:37:35 +0100 John Poltorak [EMAIL PROTECTED] wrote:
 
  On Tue, Jun 21, 2005 at 06:07:36PM +0200, Andreas Jung wrote: It may 
 well be obvious to anyone familiar with these things, but when you
  are struggling to understand them, the last thing you need when you are
  going through the most basic example is a typo in the example itself.
 
  I keep wondering whether ZOPE is sponsored by wig makers...
 
 
 I don't know what a wig maker is

A wig is something one might look for after tearing one's hair out - a 
state one often gets into when using Zope.

 but when you work with ZPT you should have 
 a certain knowledge in HTML and finding unmatched tag ends is something I 
 consider really basic and which is support by nearly every text editor.

Does Zope's built-in text editor include such support?


 -aj


-- 
John


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZPT code sample

2005-06-21 Thread Paul Winkler
On Tue, Jun 21, 2005 at 09:58:32PM +0100, John Poltorak wrote:
 I got the impression that DTML and ZPT make some aspects of HTML 
 redundant... 

redundant? no.
DTML and ZPT are better understood as languages that you use
on top of HTML.  (Or on top of XML, as the case may be.)
  
-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )