Untitled
<TEI>
    <text>
        <body>
<div type="translation">
    <!--Consecutive spaces should be folded into a single ' '-->
    <p>foo
    bar</p>
    <!--Spaces within span and link tags. They must be transferred to the
    parent node.-->
    <p>foo <foreign>bar</foreign> baz</p>
    <p>foo<foreign> bar</foreign> baz</p>
    <p>foo <foreign>bar </foreign>baz</p>
    <p>foo <foreign> bar </foreign>baz</p>
    <!--Spaces around elements must be removed, except around inlines (span,
    link) and after a <note>.-->
    <p>foo <foreign>bar</foreign> baz</p>
    <!--Spaces before <note> must be deleted, but not spaces after <note>.-->
    <p>foo <note>my note</note> bar</p>
    <!--Spaces within other elements. They must be deleted.-->
    <p>foo</p>
    <p> foo</p>
    <p>foo </p>
    <p> foo </p>
    <!--Empty elements must be removed (except milestones and the doc root)-->
    <p> foo <note/> bar </p>
    <p> foo <note> </note> bar </p>
</div>
        </body>
    </text>
</TEI>