<document source="test data">
    <substitution_definition names="one">
        1
    <paragraph>
        <strong>
            Bold \n\
            <substitution_reference refname="one">
                one
        .
    <target ids="target-1" names="target 1">
    <paragraph>
        This is where \n\
        <target ids="target-one" names="target one">
            target \n\
            <substitution_reference refname="one">
                one
         goes.
    <paragraph>
        Go to \n\
        <reference name="Target 1" refname="target 1">
            Target 1
        .  Go to \n\
        <reference name="Target one" refname="target one">
            Target \n\
            <emphasis>
                <substitution_reference refname="one">
                    one
         using substitution.
    <paragraph>
        <strong>
            Bold \n\
            <target ids="inline-target" names="inline target">
                inline target
        .
    <paragraph>
        Go to \n\
        <reference name="inline target" refname="inline target">
            inline target
        .
    <paragraph>
        <strong>
            <emphasis>
                Emphasis
             within strong
        . \n\
        <emphasis>
            <strong>
                Strong
             within emphasis
        .
        <strong>
            <emphasis>
                All strong emphasis
        .  \n\
        <emphasis>
            <strong>
                Strong
             within emphasis
        .
    <paragraph>
        <emphasis>
            <strong>
                Nested interpreted
             within interpreted
        .
    <paragraph>
        <emphasis>
            *emphasized text between stars*
    <paragraph>
        What about \n\
        <emphasis>
            Emphasis with \n\
            <strong>
                strong
             and \n\
            <title_reference>
                interpreted
             and \n\
            <emphasis>
                emphasis
             and \n\
            <target ids="target" names="target">
                target
        ?
    <paragraph>
        <emphasis>
            the* *stars\* *inside
