[ZPT] CVS: Packages/TAL - test17.html:1.1 test17.xml:1.1 test18.html:1.1 test18.xml:1.1
evan@cvs.baymountain.com
evan@cvs.baymountain.com
Mon, 23 Jul 2001 11:45:44 -0400
Subject: CVS: Packages - test17.html:1.1 test17.xml:1.1 test18.html:1.1 test18.xml:1.1
To: zope-checkins@zope.org
Update of /cvs-repository/Packages/TAL/tests/input
In directory cvs.zope.org:/tmp/cvs-serv19743/tests/input
Added Files:
test17.html test17.xml test18.html test18.xml
Log Message:
Add the tal:omit_tag statement.
Make elements obey the XML rule: attributes without explicit namespaces are in the same namespace as the tag. As a corollary, TAL output with markup removed also removes tags that are in the TAL and METAL namespace.
[debug - name:Packages, repo:Packages/TAL/tests/input, fn:test18.xml
--- Added File test18.xml in package Packages ---
<?xml version="1.0"?>
<body xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal">
<p tal:omit-tag="">Content</p>
<p tal:omit-tag=""></p>
<img tal:omit-tag=""/>
<p tal:omit-tag="string:Yes">Content</p>
<p tal:omit-tag="string:Yes"></p>
<img tal:omit-tag="string:Yes"/>
<p tal:omit-tag="nothing">Content</p>
<p tal:omit-tag="nothing"></p>
<img tal:omit-tag="nothing" />
<p tal:define="txt string:Yes" tal:omit-tag="" tal:content="txt">No</p>
<p tal:define="txt string:Yes" tal:omit-tag="" tal:replace="txt">No</p>
<p tal:omit-tag="" tal:content="default">Yes</p>
<p tal:omit-tag="" tal:replace="default">Yes</p>
</body>
[debug - name:Packages/TAL, repo:Packages/TAL/tests/input, fn:test18.xml
--- Added File test18.xml in package Packages/TAL ---