A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/ZPT.stx#2-23
---------------
The expression, "template/title" in your simple Page Template is a
*path expression*. This the most common type of expression. There
are several other types of expressions defined by the TAL
Expression Syntax (TALES) specification. For more information on
TALES see the "Zope Page Templates Reference
Appendix":AppendixC.stx.
% Anonymous User - Nov. 4, 2003 9:44 am:
The Page Templates Reference is only comprehensibe to readers who already understand the language.
Items like the following are meaningless without some explanation:
1.:
argument ::= attribute_statement [';' attribute_statement]*
attribute_statement ::= attribute_name expression
attribute_name ::= [namespace-prefix ':'] Name
namespace-prefix ::= Name
This explains nothing, but it does add considerable confusion.
2.:
argument ::= expression
Does this mean the argument must be an expression? What are the funny double colons about?
3.:
argument ::= (['text'] | 'structure') expression
That is the significance of the ( .... ), of the [ .... ], When do we use ' .... ' and when not? After all,
both sometimes work.
% Anonymous User - Nov. 4, 2003 9:45 am:
What is the significance of the ( .... ),
% Anonymous User - Jan. 13, 2004 10:56 am:
The syntax is in BNF:
http://cui.unige.ch/db-research/Enseignement/analyseinfo/AboutBNF.html
Third or fourth semester Computer Science.
_______________________________________________
ZDP maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zdp
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.