<document source="test data">
    <paragraph>
        <reference anonymous="1" name="embedded URI with too much whitespace &lt; http://example.com/ long/path /and /whitespace &gt;">
            embedded URI with too much whitespace < 
            <reference refuri="http://example.com/">
                http://example.com/
            
            long/path /and  /whitespace >
    <paragraph>
        <reference anonymous="1" name="embedded URI with too much whitespace at end &lt;http://example.com/ long/path /and /whitespace &gt;">
            embedded URI with too much whitespace at end <
            <reference refuri="http://example.com/">
                http://example.com/
            
            long/path /and  /whitespace >
    <paragraph>
        <reference anonymous="1" name="embedded URI with no preceding whitespace&lt;http://example.com&gt;">
            embedded URI with no preceding whitespace<
            <reference refuri="http://example.com">
                http://example.com
            >
    <paragraph>
        <reference anonymous="1" name="escaped URI &lt;http://example.com&gt;">
            escaped URI <
            <reference refuri="http://example.com">
                http://example.com
            >
    <paragraph>
        See 
        <reference name="HTML Anchors: &lt;a&gt;" refname="html anchors: &lt;a&gt;">
            HTML Anchors: <a>
        .