tei p5 model alternate content?

Eduard Drenth <[email protected]> Sun, 9 Apr 2017 06:10:00 +0000
Newsgroups gmane.text.tei.general
Message-ID <[email protected]>
Dear all,

Can I show some alternate content using tei:model? Like this for example:

                <elementSpec ident="body" mode="change">
                    <model behaviour="omit" predicate="/TEI/teiHeader/fileDesc/publicationStmt/availability[@status='restricted']" output="web">
                        <desc>don't show restricted material.</desc>
                        <p http://www.w3.org/1999/xhtml>this material is restricted</p>
                    </model>
                </elementSpec>

or

                <elementSpec ident="body" mode="change">
                    <model behaviour="replace" predicate="/TEI/teiHeader/fileDesc/publicationStmt/availability[@status='restricted']" output="web">
                        <p http://www.w3.org/1999/xhtml>this material is restricted</p>
                    </model>
                </elementSpec>


Eduard Drenth, Software Architekt

[email protected]

Doelestrjitte 8
8911 DX  Ljouwert
+31 58 234 30 47

gpg: https://sks-keyservers.net/pks/lookup?op=get&search=0x065EF82A1E02CC43