<?xml version="1.0" encoding="UTF-8"?>

<?context-directive job ctxfile x-setups.ctx ?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">

    <cd:command name="setuptagging" level="style" category="xml" file="strc-tag.mkxl">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:parameter name="state">
                    <cd:constant type="start"/>
                    <cd:constant type="stop" default="yes"/>
                    <cd:constant type="on"/>
                    <cd:constant type="off"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="auto"/>
                </cd:parameter>
                <cd:parameter name="preset" list="yes">
                    <cd:constant type="basic"/>
                    <cd:constant type="demo"/>
                    <cd:constant type="mkiv"/>
                    <cd:constant type="uac"/>
                </cd:parameter>
                <cd:parameter name="level">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="comment">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="option">
                    <cd:constant type="interaction"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="forgettagging" file="strc-tag.mkxl"/>

    <cd:command name="tagged" type="environment" begin="dostart" end="dostop" level="system" category="xml" file="strc-tag.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="taggednodetail" type="environment" begin="dostart" end="dostop" level="system" category="xml" file="strc-tag.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="taggedchained" type="environment" begin="dostart" end="dostop" level="system" category="xml" file="strc-tag.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="dotaggedplaceholder" level="system" category="xml" file="strc-tag.mkxl"/>

    <cd:command name="element" type="environment" level="document" category="xml" file="strc-tag.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="assignment-userdata-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelseinelement" level="system" category="xml" keywords="conditional" file="strc-tag.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifinelementelse" level="system" category="xml" keywords="conditional" file="strc-tag.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="taggedlabeltexts" level="system" category="xml" keywords="language" file="strc-tag.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-name"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="namedtaggedlabeltexts" level="system" category="xml" keywords="language" file="strc-tag.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-name"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="settaggedmetadata" level="document" category="xml" file="strc-tag.mkxl">
        <cd:arguments>
            <cd:resolve name="assignment-userdata-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="ignoretagsinexport" level="style" category="xml" file="strc-tag.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setelementbackendtag" level="system" category="xml" file="strc-tag.lmt">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords>
                <cd:constant type="BlockQuote"/>
                <cd:constant type="Caption"/>
                <cd:constant type="Code"/>
                <cd:constant type="Div"/>
                <cd:constant type="Formula"/>
                <cd:constant type="H"/>
                <cd:constant type="L"/>
                <cd:constant type="Lbl"/>
                <cd:constant type="LBody"/>
                <cd:constant type="LI"/>
                <cd:constant type="Link"/>
                <cd:constant type="P"/>
                <cd:constant type="Quote"/>
                <cd:constant type="Reference"/>
                <cd:constant type="Sect"/>
                <cd:constant type="Span"/>
                <cd:constant type="Table"/>
                <cd:constant type="TBODY"/>
                <cd:constant type="TD"/>
                <cd:constant type="TFOOT"/>
                <cd:constant type="TH"/>
                <cd:constant type="THEAD"/>
                <cd:constant type="TOC"/>
                <cd:constant type="TOCI"/>
                <cd:constant type="TR"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="setelementnature" level="system" category="xml" file="strc-tag.lmt">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords>
                <cd:constant type="inline"/>
                <cd:constant type="display"/>
                <cd:constant type="mixed"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

</cd:interface>
