[PHPTAL] exception error
Anniyka Wandersmann
anniyka at wandersmann.net
Wed Sep 13 19:50:51 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi there,
I just started with tal and phptal and i do got the following error:
exception 'Exception' with message 'PHPTAL_Dom_Parser error: Reached
document end but element stack not empty in :60'
and so on ...
I cant figure out what it want me to say. this is my code:
- -------------- xhtml-template ---------------------
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal">
<!--
/*
* index.xhtml
*
* Well, this is the index.xhtml, the template, written in TAL
*
*/
- -->
<head profile="http://dublincore.org/documents/dcq-html/">
<title tal:content="title">foo</title>
<meta name="robots" content="all" tal:attributes="content sunny/robots"/>
<!-- Doublin Core, see http://dublincore.org/ -->
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"/>
<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/"/>
<meta name="DC.title" content="foo" tal:attributes="content sunny/dc_title"/>
<meta name="DC.creator" content="foo" tal:attributes="content sunny/dc_creator"/>
<meta name="DC.subject" content="foo" tal:attributes="content sunny/dc_subject"/>
<meta name="DC.description" content="foo" tal:attributes="content sunny/dc_description"/>
<meta name="DC.publisher" content="foo" tal:attributes="content sunny/dc_publisher"/>
<meta name="DC.contributor" content="foo" tal:attributes="content sunny/dc_contributor"/>
<meta name="DC.date" content="foo" tal:attributes="content sunny/dc_date"/>
<meta name="DC.type" content="foo" tal:attributes="content sunny/dc_type"/>
<meta name="DC.format" content="foo" tal:attributes="content sunny/dc_format"/>
<meta name="DC.identifier" content="foo" tal:attributes="content sunny/dc_identifier" scheme="DCTERMS.URI"/>
<meta name="DC.source" content="foo" tal:attributes="content sunny/dc_source" scheme="DCTERMS.URI"/>
<meta name="DC.language" content="foo" tal:attributes="content sunny/dc_language"/>
<meta name="DC.relation" content="foo" tal:attributes="content sunny/dc_relation" scheme="DCTERMS.URI"/>
<meta name="DC.coverage" content="foo" tal:attributes="content sunny/dc_coverage" scheme="DCTERMS.TGN"/>
<meta name="DC.rights" content="foo" tal:attributes="content sunny/dc_rights"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="Content-Script-Type" content="text/javascript"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<meta http-equiv="Content-Style-Type" content="text/svg"/>
<link rel="stylesheet" type="text/css" href="foo.css" tal:attributes="href sunny/css"/>
<meta name="generator" content="Emacs and Brainpower"/>
</head>
<body>
test
</body>
- -------------- xhtml-template ---------------------
- -------------- index.php ---------------------
$sunny = new PHPTAL(PROGRAM_PATH . '/templates/sunny/index.xhtml');
if($data) {
else {
$sunny->title = 'virwar tal-test';
$sunny->robots = 'all';
$sunny->css = 'yes';
$sunny->dc_description = 'Seitentest von tal fuer virwar';
$sunny->dc_creator = 'Annyika Wandersmann';
$sunny->dc_subject = 'viwar tal schluesselwoerter';
$sunny->dc_date = '2006-09-13';
$sunny->dc_title = 'Noch ein Titel, aber anders';
$sunny->dc_publisher = 'wandersmann.net';
$sunny->dc_contributor = 'no coauthor';
$sunny->dc_type = 'Service';
$sunny->dc_format = 'application/xhtml+xml';
$sunny->dc_identifier = '';
$sunny->dc_source = '';
$sunny->dc_language = 'de';
$sunny->dc_relation = '';
$sunny->dc_coverage = 'Nuremberg';
$sunny->dc_rights = 'wandersmann.net';
}
try {
echo $sunny->execute();
}
catch (Exception $e){
echo $e;
}
exit;
- -------------- xhtml-template ---------------------
Well I can't figure it out ...
Anyone here who can help me?
thanks,
anniyka
- --
\ Anniyka Wandersmann :: Technische Leiterin
\ Parkstr. 20 :: Phone: +49-911-25569449
\ 90409 Nuremberg :: Mobile: +49-163-8766206
\ Germany :: Fax: +49-911-8173374
\ /\ http://www.wandersmann.net :: email: info at wandersmann.net
\ / \ ____________________________________________________________
\/ \/ A N D E R S M A N N . N E T :: wir gehen fuer sie ...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFFCEUC0UZdMosWNssRAhQlAKDM7KY2jf66jWWf/Sq+9IQ39XkXuQCfeAfp
7F/QG9cSMy8Uc/5l2AjC744=
=ETNt
-----END PGP SIGNATURE-----
More information about the PHPTAL
mailing list