tei p5 model alternate content?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

tei p5 model alternate content?

Eduard Drenth
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

[hidden email]

Doelestrjitte 8
8911 DX  Ljouwert
+31 58 234 30 47

gpg: https://sks-keyservers.net/pks/lookup?op=get&search=0x065EF82A1E02CC43
Reply | Threaded
Open this post in threaded view
|

Re: tei p5 model alternate content?

Eduard Drenth
Or better stick to the tei namespace (output agnositc):

                <elementSpec ident="body" mode="change">
                    <model behaviour="replace" predicate="/TEI/teiHeader/fileDesc/publicationStmt/availability[@status='restricted']">
                        <p>this material is restricted</p>
                    </model>
                </elementSpec>

The processor will process the provided <p> instead of the encountered <body>

Eduard Drenth, Software Architekt

[hidden email]

Doelestrjitte 8
8911 DX  Ljouwert
+31 58 234 30 47

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

________________________________________
From: TEI (Text Encoding Initiative) public discussion list <[hidden email]> on behalf of Eduard Drenth <[hidden email]>
Sent: Sunday, April 9, 2017 8:10 AM
To: [hidden email]
Subject: tei p5 model alternate content?

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

[hidden email]

Doelestrjitte 8
8911 DX  Ljouwert
+31 58 234 30 47

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