[Zope3-checkins] CVS: Zope3/src/zope/tal/tests/input - __init__.py:1.1.2.1 test01.html:1.1.2.1 test01.xml:1.1.2.1 test02.html:1.1.2.1 test02.xml:1.1.2.1 test03.html:1.1.2.1 test03.xml:1.1.2.1 test04.html:1.1.2.1 test04.xml:1.1.2.1 test05.html:1.1.2.1 test05.xml:1.1.2.1 test06.html:1.1.2.1 test06.xml:1.1.2.1 test07.html:1.1.2.1 test07.xml:1.1.2.1 test08.html:1.1.2.1 test08.xml:1.1.2.1 test09.html:1.1.2.1 test09.xml:1.1.2.1 test10.html:1.1.2.1 test11.html:1.1.2.1 test11.xml:1.1.2.1 test12.html:1.1.2.1 test13.html:1.1.2.1 test14.html:1.1.2.1 test14.xml:1.1.2.1 test15.html:1.1.2.1 test16.html:1.1.2.1 test16.xml:1.1.2.1 test17.html:1.1.2.1 test17.xml:1.1.2.1 test18.html:1.1.2.1 test18.xml:1.1.2.1 test19.html:1.1.2.1 test20.html:1.1.2.1 test21.html:1.1.2.1 test22.html:1.1.2.1 test23.html:1.1.2.1 test24.html:1.1.2.1 test25.html:1.1.2.1 test26.html:1.1.2.1 test27.html:1.1.2.1 test28.html:1.1.2.1 test29.html:1.1.2.1 test30.html:1.1.2.1 test31.html:1.1.2.1 test32.html:1.1.2.1 test_metal1.html! :1.1.2.1 test_metal2.html:1.1.2.1 test_metal3.html:1.1.2.1

Jim Fulton jim@zope.com
Mon, 23 Dec 2002 14:33:33 -0500


Update of /cvs-repository/Zope3/src/zope/tal/tests/input
In directory cvs.zope.org:/tmp/cvs-serv19908/zope/tal/tests/input

Added Files:
      Tag: NameGeddon-branch
	__init__.py test01.html test01.xml test02.html test02.xml 
	test03.html test03.xml test04.html test04.xml test05.html 
	test05.xml test06.html test06.xml test07.html test07.xml 
	test08.html test08.xml test09.html test09.xml test10.html 
	test11.html test11.xml test12.html test13.html test14.html 
	test14.xml test15.html test16.html test16.xml test17.html 
	test17.xml test18.html test18.xml test19.html test20.html 
	test21.html test22.html test23.html test24.html test25.html 
	test26.html test27.html test28.html test29.html test30.html 
	test31.html test32.html test_metal1.html test_metal2.html 
	test_metal3.html 
Log Message:
Initial renaming before debugging

=== Added File Zope3/src/zope/tal/tests/input/__init__.py ===
#
# This file is necessary to make this directory a package.


=== Added File Zope3/src/zope/tal/tests/input/test01.html ===
<!DOCTYPE html 
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "DTD/xhtml1-transitional.dtd">
<html>

  <head>dadada</head>

  <body xmlns:z="http://xml.zope.org/namespaces/tal" z:define="foo python:1">
<h1 z:condition="python:0">This title is not displayed</h1>
    <h1 z:condition="python:1" z:content="str:This
Is
The
Replaced
Title">Title</h1>

  <!-- test entity references -->
  &nbsp;&HarryPotter;

  <!-- examples adapted from TemplateAttributeLanguageSyntax -->

    <span z:content="str:here/id"/>

    <p z:define="x str:template/title; global five python:2+3;" z:content="text var:five"/>

    <p z:repeat="car python:['honda', 'subaru', 'acura']">
      <span z:replace="var:car"/>
    </p>

    <p xml:foo="bar">foo bar</p>

  <!-- more examples -->

    <ul>
    <span z:repeat="car python:['honda', 'subaru', 'acura']">
      <li z:content="var:car">Car Name</li>
    </span>
    </ul>

  <!-- test attribute expansion -->

    <a href="foo" z:attributes="href python:'http://python.org' ">python</a>
    <a z:attributes="href python:'http://python.org' ">python</a>

  <!-- test insert/replace structure -->
    <span z:content="structure python:None" />
    <span z:replace="structure python:None" />

    <span z:define="global x str:&lt;h3&gt;Header Level 3&lt;/h3&gt;" />
    <span z:define="global x python:'&amp;' + 'nbsp;;' + x" />

    <span z:replace="structure x" />
    <span z:content="structure x" />

  </body>

</html>


=== Added File Zope3/src/zope/tal/tests/input/test01.xml ===
<?xml version="1.0" ?>
<!DOCTYPE html 
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "DTD/xhtml1-transitional.dtd">
<html>

  <head>dadada</head>

  <body xmlns:z="http://xml.zope.org/namespaces/tal" z:define="foo python:1">
<h1 z:condition="python:0">This title is not displayed</h1>
    <h1 z:condition="python:1" z:content="str:This
Is
The
Replaced
Title">Title</h1>

  <!-- test entity references -->
  &nbsp;&HarryPotter;

  <!-- examples adapted from TemplateAttributeLanguageSyntax -->

    <span z:content="str:here/id"/>

    <p z:define="x str:template/title; global five python:2+3;" z:content="text var:five"/>

    <p z:repeat="car python:['honda', 'subaru', 'acura']">
      <span z:replace="var:car"/>
    </p>

    <p xml:foo="bar">foo bar</p>

  <!-- more examples -->

    <ul>
    <span z:repeat="car python:['honda', 'subaru', 'acura']">
      <li z:content="var:car">Car Name</li>
    </span>
    </ul>

  <!-- test attribute expansion -->

    <a href="foo" z:attributes="href python:'http://python.org' ">python</a>
    <a z:attributes="href python:'http://python.org' ">python</a>

  <!-- test insert/replace structure -->
    <span z:content="structure python:None" />
    <span z:replace="structure python:None" />

    <span z:define="global x str:&lt;h3&gt;Header Level 3&lt;/h3&gt;" />
    <span z:define="global x python:'&amp;' + 'nbsp;;' + x" />

    <span z:replace="structure x" />
    <span z:content="structure x" />

  </body>

</html>


=== Added File Zope3/src/zope/tal/tests/input/test02.html ===
<biztalk_1 xmlns="urn:schemas-biztalk-org:biztalk:biztalk_1">

<foo:header xmlns:foo="whomping-willow" plain="guido" quote='"' apostrophe="'" both="&quot;'" lt="&lt;" gt="&gt;" amp="&amp;" foo="">
	<manifest>
		<document>
			<name>sample1</name>
			<description>a simple invoice</description>
		</document>
	</manifest>
</foo:header>

<body>

<!-- sample1.xml is an example of a simple invoice for a small restaurant supplies order -->

<Invoice xmlns="urn:http://schemas.biztalk.org/united_rest_com/yw7sg15x.xml">
	<Header>
		<InvoiceNumber>01786</InvoiceNumber>
		<InvoiceDate>2000-03-17</InvoiceDate>	<!-- March 17th, 2000 -->
		<OrderNo>55377</OrderNo>
		<OrderDate>2000-03-15</OrderDate>	<!-- March 15th, 2000 -->
		<CustomerPO>GJ03405</CustomerPO>
		<ShipMethod>DAVE 1</ShipMethod>
		<ShipDate>2000-03-17</ShipDate>	<!-- March 17th, 2000 -->
		<CustomerID>K5211(34)</CustomerID>
		<SalesPersonCode>23</SalesPersonCode>
		<TaxID>23</TaxID>
	</Header>
	<InvoiceTo>
		<Name>SHIPWRIGHT RESTAURANTS LIMITED</Name>
		<AddressLine>125 NORTH SERVICE ROAD W</AddressLine>
		<AddressLine>WESTLAKE ACCESS</AddressLine>
		<City>NORTH BAY</City>
		<PostCode>L8B1O5</PostCode>
		<State>ONTARIO</State>
		<Country>CANADA</Country>
	</InvoiceTo>
	<ShipTo>
		<Name/>
		<AddressLine>ATTN: PAULINE DEGRASSI</AddressLine>		
		<City/>
		<PostCode/>
		<State/>
		<Country/>
	</ShipTo>
	<DetailLines>
		<DetailLine>
			<QuantityShipped>1</QuantityShipped>
			<UnitOfMeasure>CS</UnitOfMeasure>
			<PartNumber>DM 5309</PartNumber>
			<PartDescription>#1013 12 OZ.MUNICH STEIN</PartDescription>
			<UnitPrice>37.72</UnitPrice>
			<LineTotal>37.72</LineTotal>
		</DetailLine>
		<DetailLine>
			<QuantityShipped>6</QuantityShipped>
			<UnitOfMeasure>DZ</UnitOfMeasure>
			<PartNumber>ON 6420</PartNumber>
			<PartDescription>PROVINCIAL DINNER FORK</PartDescription>
			<UnitPrice>17.98</UnitPrice>
			<LineTotal>107.88</LineTotal>
		</DetailLine>
		<DetailLine>
			<QuantityShipped>72</QuantityShipped>
			<UnitOfMeasure>EA</UnitOfMeasure>
			<PartNumber>JR20643</PartNumber>
			<PartDescription>PLASTIC HANDLED STEAK KNIFE</PartDescription>
			<UnitPrice>.81</UnitPrice>
			<LineTotal>58.32</LineTotal>
		</DetailLine>
		<DetailLine>
			<QuantityShipped>6</QuantityShipped>
			<UnitOfMeasure>DZ</UnitOfMeasure>
			<PartNumber>ON 6410</PartNumber>
			<PartDescription>PROVINCIAL TEASPOONS</PartDescription>
			<UnitPrice>12.16</UnitPrice>
			<LineTotal>72.96</LineTotal>
		</DetailLine>
		<DetailLine>
			<QuantityShipped>0</QuantityShipped>
			<UnitOfMeasure>DZ</UnitOfMeasure>
			<PartNumber>ON 6411</PartNumber>
			<PartDescription>PROVINCIAL RD BOWL SPOON</PartDescription>
			<QuantityBackOrdered>6</QuantityBackOrdered>
			<UnitPrice>17.98</UnitPrice>
			<LineTotal>0.00</LineTotal>
		</DetailLine>
		<DetailLine>
			<QuantityShipped>1</QuantityShipped>
			<UnitOfMeasure>EA</UnitOfMeasure>
			<PartNumber>DO 3218</PartNumber>
			<PartDescription>34 OZ DUAL DIAL SCALE AM3218</PartDescription>
			<UnitPrice>70.00</UnitPrice>
			<DiscountPercentage>5.0</DiscountPercentage>
			<LineTotal>66.50</LineTotal>
		</DetailLine>
		<DetailLine>
			<QuantityShipped>1</QuantityShipped>
			<UnitOfMeasure>CS</UnitOfMeasure>
			<PartNumber>DM 195</PartNumber>
			<PartDescription>20 OZ.BEER PUB GLASS</PartDescription>
			<UnitPrice>55.90</UnitPrice>
			<LineTotal>55.90</LineTotal>
		</DetailLine>
	</DetailLines>
	<Totals>
		<SubTotal>399.28</SubTotal>
		<DiscountTotal>3.50</DiscountTotal>
		<FreightTotal>23.75</FreightTotal>
		<GSTTotal>29.61</GSTTotal>
		<ProvTaxTotal>33.84</ProvTaxTotal>
		<OtherTotal>33.84</OtherTotal>
		<InvoiceTotal>486.48</InvoiceTotal>
	</Totals>
</Invoice>

</body>
</biztalk_1>


=== Added File Zope3/src/zope/tal/tests/input/test02.xml ===
<?xml version="1.0" ?>
<biztalk_1 xmlns="urn:schemas-biztalk-org:biztalk:biztalk_1">

<foo:header xmlns:foo="whomping-willow" plain="guido" quote='"' apostrophe="'" both="&quot;'" lt="&lt;" gt="&gt;" amp="&amp;" foo="">
	<manifest>
		<document>
			<name>sample1</name>
			<description>a simple invoice</description>
		</document>
	</manifest>
</foo:header>

<body>

<!-- sample1.xml is an example of a simple invoice for a small restaurant supplies order -->

<Invoice xmlns="urn:http://schemas.biztalk.org/united_rest_com/yw7sg15x.xml">
	<Header>
		<InvoiceNumber>01786</InvoiceNumber>
		<InvoiceDate>2000-03-17</InvoiceDate>	<!-- March 17th, 2000 -->
		<OrderNo>55377</OrderNo>
		<OrderDate>2000-03-15</OrderDate>	<!-- March 15th, 2000 -->
		<CustomerPO>GJ03405</CustomerPO>
		<ShipMethod>DAVE 1</ShipMethod>
		<ShipDate>2000-03-17</ShipDate>	<!-- March 17th, 2000 -->
		<CustomerID>K5211(34)</CustomerID>
		<SalesPersonCode>23</SalesPersonCode>
		<TaxID>23</TaxID>
	</Header>
	<InvoiceTo>
		<Name>SHIPWRIGHT RESTAURANTS LIMITED</Name>
		<AddressLine>125 NORTH SERVICE ROAD W</AddressLine>
		<AddressLine>WESTLAKE ACCESS</AddressLine>
		<City>NORTH BAY</City>
		<PostCode>L8B1O5</PostCode>
		<State>ONTARIO</State>
		<Country>CANADA</Country>
	</InvoiceTo>
	<ShipTo>
		<Name/>
		<AddressLine>ATTN: PAULINE DEGRASSI</AddressLine>		
		<City/>
		<PostCode/>
		<State/>
		<Country/>
	</ShipTo>
	<DetailLines>
		<DetailLine>
			<QuantityShipped>1</QuantityShipped>
			<UnitOfMeasure>CS</UnitOfMeasure>
			<PartNumber>DM 5309</PartNumber>
			<PartDescription>#1013 12 OZ.MUNICH STEIN</PartDescription>
			<UnitPrice>37.72</UnitPrice>
			<LineTotal>37.72</LineTotal>
		</DetailLine>
		<DetailLine>
			<QuantityShipped>6</QuantityShipped>
			<UnitOfMeasure>DZ</UnitOfMeasure>
			<PartNumber>ON 6420</PartNumber>
			<PartDescription>PROVINCIAL DINNER FORK</PartDescription>
			<UnitPrice>17.98</UnitPrice>
			<LineTotal>107.88</LineTotal>
		</DetailLine>
		<DetailLine>
			<QuantityShipped>72</QuantityShipped>
			<UnitOfMeasure>EA</UnitOfMeasure>
			<PartNumber>JR20643</PartNumber>
			<PartDescription>PLASTIC HANDLED STEAK KNIFE</PartDescription>
			<UnitPrice>.81</UnitPrice>
			<LineTotal>58.32</LineTotal>
		</DetailLine>
		<DetailLine>
			<QuantityShipped>6</QuantityShipped>
			<UnitOfMeasure>DZ</UnitOfMeasure>
			<PartNumber>ON 6410</PartNumber>
			<PartDescription>PROVINCIAL TEASPOONS</PartDescription>
			<UnitPrice>12.16</UnitPrice>
			<LineTotal>72.96</LineTotal>
		</DetailLine>
		<DetailLine>
			<QuantityShipped>0</QuantityShipped>
			<UnitOfMeasure>DZ</UnitOfMeasure>
			<PartNumber>ON 6411</PartNumber>
			<PartDescription>PROVINCIAL RD BOWL SPOON</PartDescription>
			<QuantityBackOrdered>6</QuantityBackOrdered>
			<UnitPrice>17.98</UnitPrice>
			<LineTotal>0.00</LineTotal>
		</DetailLine>
		<DetailLine>
			<QuantityShipped>1</QuantityShipped>
			<UnitOfMeasure>EA</UnitOfMeasure>
			<PartNumber>DO 3218</PartNumber>
			<PartDescription>34 OZ DUAL DIAL SCALE AM3218</PartDescription>
			<UnitPrice>70.00</UnitPrice>
			<DiscountPercentage>5.0</DiscountPercentage>
			<LineTotal>66.50</LineTotal>
		</DetailLine>
		<DetailLine>
			<QuantityShipped>1</QuantityShipped>
			<UnitOfMeasure>CS</UnitOfMeasure>
			<PartNumber>DM 195</PartNumber>
			<PartDescription>20 OZ.BEER PUB GLASS</PartDescription>
			<UnitPrice>55.90</UnitPrice>
			<LineTotal>55.90</LineTotal>
		</DetailLine>
	</DetailLines>
	<Totals>
		<SubTotal>399.28</SubTotal>
		<DiscountTotal>3.50</DiscountTotal>
		<FreightTotal>23.75</FreightTotal>
		<GSTTotal>29.61</GSTTotal>
		<ProvTaxTotal>33.84</ProvTaxTotal>
		<OtherTotal>33.84</OtherTotal>
		<InvoiceTotal>486.48</InvoiceTotal>
	</Totals>
</Invoice>

</body>
</biztalk_1>


=== Added File Zope3/src/zope/tal/tests/input/test03.html ===
<p xmlns:z="http://xml.zope.org/namespaces/tal">
  <span z:define="local x str:hello brave new world">
    <span z:content="text local:x">outer variable x, first appearance</span>
    <span z:define="local x str:goodbye cruel world">
      <span z:content="text local:x">inner variable x</span>
    </span>
    <span z:content="text local:x">outer variable x, second appearance</span>
  </span>
</p>


=== Added File Zope3/src/zope/tal/tests/input/test03.xml ===
<?xml version="1.0" ?>
<p xmlns:z="http://xml.zope.org/namespaces/tal">
  <span z:define="local x str:hello brave new world">
    <span z:content="text local:x">outer variable x, first appearance</span>
    <span z:define="local x str:goodbye cruel world">
      <span z:content="text local:x">inner variable x</span>
    </span>
    <span z:content="text local:x">outer variable x, second appearance</span>
  </span>
</p>


=== Added File Zope3/src/zope/tal/tests/input/test04.html ===
<html>

  <body xmlns:m="http://xml.zope.org/namespaces/metal" xmlns:z="http://xml.zope.org/namespaces/tal" m:define-macro="body" z:define="global count python:0">

    <ul m:define-macro="whoops">
        <li z:repeat="item python:range(count)">
          <span z:replace="item">1</span>
          <span z:replace="global:message"/>
        </li>
    </ul>

    <span z:define="global count python:2; global message str:hello world"/>

    <p m:use-macro="whoops">use-macro
      <span m:fill-slot="whoops">fill-slot</span>
    </p>

    <span z:define="global message str:goodbye cruel world"/>

    <p m:use-macro="whoops">use-macro</p>

    <p m:define-slot="whoops">define-slot</p>

  </body>

</html>


=== Added File Zope3/src/zope/tal/tests/input/test04.xml ===
<?xml version="1.0" ?>
<html>

  <body xmlns:m="http://xml.zope.org/namespaces/metal" xmlns:z="http://xml.zope.org/namespaces/tal" m:define-macro="body" z:define="global count python:0">

    <ul m:define-macro="whoops">
        <li z:repeat="item python:range(count)">
          <span z:replace="item">1</span>
          <span z:replace="global:message"/>
        </li>
    </ul>

    <span z:define="global count python:2; global message str:hello world"/>

    <p m:use-macro="whoops">use-macro
      <span m:fill-slot="whoops">fill-slot</span>
    </p>

    <span z:define="global message str:goodbye cruel world"/>

    <p m:use-macro="whoops">use-macro</p>

    <p m:define-slot="whoops">define-slot</p>

  </body>

</html>


=== Added File Zope3/src/zope/tal/tests/input/test05.html ===
<html>

  <body xmlns:m="http://xml.zope.org/namespaces/metal" m:define-macro="body">

    <h1>This is the body of test5</h1>

  </body>

</html>


=== Added File Zope3/src/zope/tal/tests/input/test05.xml ===
<?xml version="1.0" ?>
<html>

  <body xmlns:m="http://xml.zope.org/namespaces/metal" m:define-macro="body">

    <h1>This is the body of test5</h1>

  </body>

</html>


=== Added File Zope3/src/zope/tal/tests/input/test06.html ===
<html>
  <body xmlns:m="http://xml.zope.org/namespaces/metal"
        m:use-macro="tests/input/test05.html/body">
    dummy body in test6
  </body>
</html>


=== Added File Zope3/src/zope/tal/tests/input/test06.xml ===
<?xml version="1.0" ?>
<html>
  <body xmlns:m="http://xml.zope.org/namespaces/metal"
        m:use-macro="tests/input/test05.xml/body">
    dummy body in test6
  </body>
</html>


=== Added File Zope3/src/zope/tal/tests/input/test07.html ===
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:define-macro="myTable">
<!-- macro definition with slots -->
  <tr>
    <td>Top Left</td>
    <td>Top Right</td>
  </tr>
  <tr>
    <td>Bottom left</td>
    <td><span m:define-slot="bottomRight">Bottom Right</span></td>
  </tr>
</table>


=== Added File Zope3/src/zope/tal/tests/input/test07.xml ===
<?xml version="1.0" ?>
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:define-macro="myTable">
<!-- macro definition with slots -->
  <tr>
    <td>Top Left</td>
    <td>Top Right</td>
  </tr>
  <tr>
    <td>Bottom left</td>
    <td><span m:define-slot="bottomRight">Bottom Right</span></td>
  </tr>
</table>


=== Added File Zope3/src/zope/tal/tests/input/test08.html ===
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="tests/input/test07.html/myTable">
<!-- macro use with slots -->
  <tr>
    <td>
      <span m:fill-slot="bottomRight">
      <h1>Some headline</h1>
      <p>This is the real contents of the bottom right slot.</p>
      <p>It is supposed to contain a lot of text.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.</p>
      <p>It is supposed to contain a lot of text.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.</p>
      <p>It is supposed to contain a lot of text.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.</p>
      </span>
    </td>
  </tr>
</table>


=== Added File Zope3/src/zope/tal/tests/input/test08.xml ===
<?xml version="1.0" ?>
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="tests/input/test07.xml/myTable">
<!-- macro use with slots -->
  <tr>
    <td>
      <span m:fill-slot="bottomRight">
      <h1>Some headline</h1>
      <p>This is the real contents of the bottom right slot.</p>
      <p>It is supposed to contain a lot of text.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.</p>
      <p>It is supposed to contain a lot of text.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.</p>
      <p>It is supposed to contain a lot of text.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.</p>
      </span>
    </td>
  </tr>
</table>


=== Added File Zope3/src/zope/tal/tests/input/test09.html ===
<html>
<body>
<p>
  Just a bunch of text.
<p>more text...
<ul>
  <li>first item
  <li>second item

  <ol>
    <li>second list, first item
    <li>second list, second item
    <dl compact>
      <dt>term 1
      <dt>term 2
      <dd>definition
    </dl>
  </ol>

  <li>Now let's have a paragraph...
    <p>My Paragraph
    </li>

  <li>And a table in a list item:
    <table>
    </table>
</ul>

</body>
</html>


=== Added File Zope3/src/zope/tal/tests/input/test09.xml ===
<html>
<body>
<p>
  Just a bunch of text.</p>
<p>more text...</p>
<ul>
  <li>first item</li>
  <li>second item

  <ol>
    <li>second list, first item</li>
    <li>second list, second item
    <dl compact="">
      <dt>term 1</dt>
      <dt>term 2</dt>
      <dd>definition</dd>
    </dl></li>
  </ol></li>

  <li>Now let's have a paragraph...
    <p>My Paragraph</p>
    </li>

  <li>And a table in a list item:
    <table>
    </table></li>
</ul>

</body>
</html>


=== Added File Zope3/src/zope/tal/tests/input/test10.html ===
<html><body>
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="tests/input/test07.html/myTable">
<!-- macro use with slots -->
  <tr>
    <td>
      <span m:fill-slot="bottomRight">
      <h1>Some headline</h1>
      <p>This is the real contents of the bottom right slot.</p>
      <hr>
      <p>It is supposed to contain a lot of text.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.</p>
      <p>It is supposed to contain a lot of text.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.</p>
      <p>It is supposed to contain a lot of text.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.  Blah, blah, blab.
      Blabber, blabber, blah.  Baah, baah, barb.</p>
      <br><br>
      </span>
    </td>
  </tr>
</table>
</body></html>


=== Added File Zope3/src/zope/tal/tests/input/test11.html ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal">
  <p tal:replace="structure string:&lt;a&gt;bar&lt;/a&gt;"
     tal:attributes="href string:http://www.python.org">dummy text</p>
  <p tal:define="x python:1" tal:on-error="string:bad boy!">
   <span tal:define="x python:2">
    <span tal:define="x python:3">
     <span tal:content="python:1/0"/>
    </span>
   </span>
  </p>
  <p tal:on-error="string:x undefined">
    <span tal:content="x"/>
  </p>
</html>


=== Added File Zope3/src/zope/tal/tests/input/test11.xml ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal">
  <p tal:replace="structure string:&lt;a&gt;bar&lt;/a&gt;"
     tal:attributes="href string:http://www.python.org">dummy text</p>
  <p tal:define="x python:1" tal:on-error="string:bad boy!">
   <span tal:define="x python:2">
    <span tal:define="x python:3">
     <span tal:content="python:1/0"/>
    </span>
   </span>
  </p>
  <p tal:on-error="string:x undefined">
    <span tal:content="x"/>
  </p>
</html>


=== Added File Zope3/src/zope/tal/tests/input/test12.html ===
<span tal:define="global true python:1; global false python:0" />

<img ismap>
<img ismap=ismap>
<img ismap="ismap">
<img ismap="foo">

<img ismap tal:attributes="ismap true">
<img ismap tal:attributes="ismap false">
<img ismap tal:attributes="ismap nothing">

<img ismap="foo" tal:attributes="ismap true">
<img ismap="foo" tal:attributes="ismap false">
<img ismap="foo" tal:attributes="ismap nothing">

<img tal:attributes="ismap true">
<img tal:attributes="ismap false">
<img tal:attributes="ismap nothing">

<span tal:define="global x string:x.gif" />

<img src="foo">
<img src="foo" tal:attributes="src x">
<img src="foo" tal:attributes="src nothing">


=== Added File Zope3/src/zope/tal/tests/input/test13.html ===
Here's a stray greater than: >

<script>
  <!-- no comment -->
  <notag>
  &noentity;
</script>


=== Added File Zope3/src/zope/tal/tests/input/test14.html ===
<table>
  <tr>
    <td tal:repeat="x python:['car', 'bike', 'broomstick']" tal:content="x">
    </td>
  </tr>
</table>

<p>
  <span tal:repeat="x python:['Harry', 'Ron', 'Hermione']" tal:replace="x" />
</p>


=== Added File Zope3/src/zope/tal/tests/input/test14.xml ===
<?xml version="1.0" ?>
<html xmlns:tal="http://xml.zope.org/namespaces/tal">

<table>
  <tr>
    <td tal:repeat="x python:['car', 'bike', 'broomstick']" tal:content="x">
    </td>
  </tr>
</table>

<p>
  <span tal:repeat="x python:['Harry', 'Ron', 'Hermione']" tal:replace="x" />
</p>

</html>


=== Added File Zope3/src/zope/tal/tests/input/test15.html ===
<span metal:define-macro="INNER">
  <span metal:define-slot="INNERSLOT">INNERSLOT</span>
</span>

<xxx metal:use-macro="INNER">
  <xxx metal:fill-slot="INNERSLOT">inner-argument</xxx>
</xxx>

<div metal:define-macro="OUTER">
<div metal:use-macro="INNER">
  <xxx metal:define-slot="OUTERSLOT" metal:fill-slot="INNERSLOT">
    OUTERSLOT
  </xxx>
</div>
</div>

<div metal:use-macro="OUTER">
<span>
  <xxx>
    <div metal:fill-slot="OUTERSLOT">outer-argument</div>
  </xxx>
</span>
</div>

<div metal:use-macro="OUTER">
</div>


=== Added File Zope3/src/zope/tal/tests/input/test16.html ===
<a href="valid/link.html" 
   tal:attributes="href python:'/base/' + attrs['href']">blah, blah</a>


=== Added File Zope3/src/zope/tal/tests/input/test16.xml ===
<?xml version="1.0"?>
<body xmlns:tal="http://xml.zope.org/namespaces/tal">

<img href="foo" Alt="bar" 
 tal:attributes="Href string:about:foo;alT string:baz" />

</body>


=== Added File Zope3/src/zope/tal/tests/input/test17.html ===
<tal:block tal:content="string:Yes">No</tal:block>
<tal:block content="string:Yes">No</tal:block>
<tal:block>Yes</tal:block>

<metal:block tal:content="string:Yes">No</metal:block>
<metal:block>Yes</metal:block>


=== Added File Zope3/src/zope/tal/tests/input/test17.xml ===
<?xml version="1.0"?>
<body xmlns:z="http://xml.zope.org/namespaces/tal"
      xmlns:z2="http://xml.zope.org/namespaces/metal">
<z:block z:content="string:Yes">No</z:block>
<z:block content="string:Yes">No</z:block>
<z:block>Yes</z:block>

<z2:block z:content="string:Yes">No</z2:block>
<z2:block>Yes</z2:block>
</body>


=== Added File Zope3/src/zope/tal/tests/input/test18.html ===
<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>


=== Added File Zope3/src/zope/tal/tests/input/test18.xml ===
<?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>


=== Added File Zope3/src/zope/tal/tests/input/test19.html ===
<span i18n:translate="">Replace this</span>
<span i18n:translate="msgid">This is a
translated string</span>
<span i18n:translate="">And another
translated string</span>


=== Added File Zope3/src/zope/tal/tests/input/test20.html ===
<span i18n:translate="">replaceable <p tal:replace="str:here">content</p></span>


=== Added File Zope3/src/zope/tal/tests/input/test21.html ===
<span i18n:translate="">
  <span tal:replace="str:Lomax" i18n:name="name" /> was born in
  <span tal:replace="str:Antarctica" i18n:name="country" />.
</span>


=== Added File Zope3/src/zope/tal/tests/input/test22.html ===
<span i18n:translate="">
  <span i18n:name="name"><b>Jim</b></span> was born in
  <span i18n:name="country">the USA</span>.
</span>


=== Added File Zope3/src/zope/tal/tests/input/test23.html ===
<span i18n:data="here/currentTime"
      i18n:translate="timefmt">2:32 pm</span>


=== Added File Zope3/src/zope/tal/tests/input/test24.html ===
<input name="Delete"
       tal:attributes="name string:delete_button"
       i18n:attributes="name">


=== Added File Zope3/src/zope/tal/tests/input/test25.html ===
<input name="Delete" i18n:attributes="name">


=== Added File Zope3/src/zope/tal/tests/input/test26.html ===
<span i18n:translate="jobnum">
    Job #<span tal:replace="context/@@object_name"
               i18n:name="jobnum">NN</span></span>


=== Added File Zope3/src/zope/tal/tests/input/test27.html ===
<p i18n:translate="verify">Your contact email address is recorded as
    <a href="mailto:user@example.com"
       tal:content="request/submitter"
       i18n:name="email">user@host.com</a>
</p>


=== Added File Zope3/src/zope/tal/tests/input/test28.html ===
<p i18n:translate="verify">Your contact email address is recorded as
    <span i18n:name="email">
    <a href="mailto:user@example.com"
       tal:content="request/submitter">user@host.com</a></span>
</p>


=== Added File Zope3/src/zope/tal/tests/input/test29.html ===
At the tone the time will be
<span i18n:data="here/currentTime"
      i18n:translate="timefmt"
      i18n:name="time">2:32 pm</span>... beep!


=== Added File Zope3/src/zope/tal/tests/input/test30.html ===
<p i18n:translate="verify">Your contact email address is recorded as
<a href="user@host.com"
   tal:attributes="href string:mailto:${request/submitter}"
   tal:content="request/submitter"
   i18n:name="email">user@host.com</a>
</p>


=== Added File Zope3/src/zope/tal/tests/input/test31.html ===
<p i18n:translate="verify">Your contact email address is recorded as
<span i18n:name="email">
<a href="user@host.com"
   tal:attributes="href string:mailto:${request/submitter}"
   tal:content="request/submitter">
   user@host.com</a></span>
</p>


=== Added File Zope3/src/zope/tal/tests/input/test32.html ===
<span i18n:translate="origin">
  <span tal:content="str:Lomax" i18n:name="name" /> was born in
  <span tal:content="str:Antarctica" i18n:name="country" />.
</span>


=== Added File Zope3/src/zope/tal/tests/input/test_metal1.html ===
<span metal:define-macro="OUTER">
  AAA
  <span metal:define-macro="INNER">INNER</span>
  BBB
</span>

<xxx metal:use-macro="OUTER">
</xxx>

<xxx metal:use-macro="INNER">
</xxx>

<span metal:define-macro="OUTER2">
  AAA
  <xxx metal:define-slot="OUTERSLOT">
  <span metal:define-macro="INNER2">INNER</span>
  </xxx>
  BBB
</span>

<xxx metal:use-macro="OUTER2">
</xxx>

<xxx metal:use-macro="INNER2">
</xxx>

<xxx metal:use-macro="OUTER2">
  <yyy metal:fill-slot="OUTERSLOT">OUTERSLOT</yyy>
</xxx>

<span metal:define-macro="OUTER3">
  AAA
  <xxx metal:define-slot="OUTERSLOT">
  <span metal:define-macro="INNER3">INNER
    <xxx metal:define-slot="INNERSLOT">INNERSLOT</xxx>
  </span>
  </xxx>
  BBB
</span>

<xxx metal:use-macro="OUTER3">
</xxx>

<xxx metal:use-macro="OUTER3">
  <yyy metal:fill-slot="OUTERSLOT">OUTERSLOT</yyy>
</xxx>

<xxx metal:use-macro="INNER3">
</xxx>

<xxx metal:use-macro="INNER3">
  <yyy metal:fill-slot="INNERSLOT">INNERSLOT</yyy>
</xxx>

<xxx metal:use-macro="INNER3">
  <yyy metal:fill-slot="INNERSLOT">
    <zzz metal:define-macro="INSLOT">INSLOT</zzz>
  </yyy>
</xxx>

<xxx metal:use-macro="INSLOT"></xxx>


=== Added File Zope3/src/zope/tal/tests/input/test_metal2.html ===
<div metal:define-macro="OUTER">
  OUTER
  <span metal:define-macro="INNER">INNER</span>
  OUTER
</div>

<div metal:use-macro="OUTER"/>


=== Added File Zope3/src/zope/tal/tests/input/test_metal3.html ===
<span tal:attributes="class string:foo">Should not get attr in metal</span>