1. reference the template in page DOM

should render hand wave with '👋 World!' and 'Hello World!'

        <template id="template1">
            <slot> Hello</slot>
            World!
        </template>

        <custom-element tag="dce-internal" src="#template1"></custom-element>
        <!-- no need for loading fallback as the template exists -->

        <dce-internal>👋</dce-internal>
        <dce-internal></dce-internal>
    
👋 World! Hello World!

2. without TAG, inline instantiation

hash value in SRC references template by ID. Should output 'construction' 2 times

        <template id="template2">
            🏗️ construction
        </template>

        <custom-element src="#template2"></custom-element>
        <custom-element src="#template2"></custom-element>
    
🏗️ construction 🏗️ construction

3. external SVG file


        <custom-element tag="dce-external" src="confused.svg">
            <template><i>loading from SVG ...</i></template>
        </custom-element>
        <dce-external></dce-external>
        <custom-element src="confused.svg">
            <i>inline DCE loading from SVG ...</i>
        </custom-element>
        <custom-element src="no.svg">
            <i>fallback for missing image</i>
        </custom-element>
    
inline DCE loading from SVG ... fallback for missing image

4. external XSLT file

This external templates generated the tree for DCE data set
tree.xsl

        <custom-element tag="dce-external-4" src="tree.xsl">
            <template><i>loading from XSLT ...</i></template>
        </custom-element>
        <dce-external-4 title="DCE with external XSLT template" data-fruit="🍌">Hi</dce-external-4>
        <custom-element src="tree.xsl" data-smile="👼" data-basket="🍒">
            <i>inline DCE loading from XSLT ...</i>
        </custom-element>
    
Hi inline DCE loading from XSLT ...

5. external HTML template

Should render 👋👌, svg, formula

        <custom-element tag="dce-external-5" src="html-template.html">
            <template><i>loading from HTML file ...</i></template>
        </custom-element>
        <dce-external-5 title="DCE with external XSLT template" data-fruit="🍌">Hi</dce-external-5>
        <custom-element src="html-template.html" data-smile="👼" data-basket="🍒">
            <i>inline DCE loading from HTML file ...</i>
        </custom-element>
    
Hi inline DCE loading from HTML file ...

6. HTML, SVG by ID within external file

Should render 👋, svg, formula
html-template.html

        <custom-element src="./html-template.html#wave">
            <template><i>loading HTML from templates file ...</i></template>
        </custom-element>
        <custom-element src="./html-template.html#dwc-logo">
            <template><i>loading SVG from templates file ...</i></template>
        </custom-element>
        <custom-element src="./html-template.html#sophomores-dream">
            <template><i>loading MathML from HTML file ...</i></template>
        </custom-element>
    

7. XSLT by ID within external file

Should render tree, and fallback
html-template.html

        <custom-element src="html-template.xhtml#embedded-xsl">
            <template>whole XSLT is embedded into HTML body</template>
        </custom-element>
        <custom-element src="html-template.html#none">
            <template><i>element with id=none is missing in template</i></template>
        </custom-element>
    

8. external file with embedding of another external DCE

Should render Vulcan Salute 🖖

        <custom-element src="embed-1.html">
            loading from embed-1.html ...
        </custom-element>
    
loading from embed-1.html ...

9. external file with invoking of relative template as hash by enclosed custom-element

Should render Vulcan Salute 🖖

        <custom-element src="./lib-dir/embed-lib.html#embed-relative-hash">
            loading from embed-1.html ...
        </custom-element>
    
loading from embed-1.html ...

10. external file with invoking of template in another relative path file by enclosed custom-element

Should render Vulcan Salute 🖖

        <custom-element src="./lib-dir/embed-lib.html#embed-relative-file">
            loading from ./lib-dir/embed-lib.html ...
        </custom-element>
    
loading from ./lib-dir/embed-lib.html ...

embed-1.html external file

embed-lib.html with multiple templates