Re: tei p5 model alternate content?
Eduard Drenth <[email protected]> Sun, 9 Apr 2017 06:49:00 +0000
| Newsgroups | gmane.text.tei.general |
|---|---|
| Message-ID | <[email protected]> |
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
[email protected]
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 <[email protected]> on behalf of Eduard Drenth <[email protected]>
Sent: Sunday, April 9, 2017 8:10 AM
To: [email protected]
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
[email protected]
Doelestrjitte 8
8911 DX Ljouwert
+31 58 234 30 47
gpg: https://sks-keyservers.net/pks/lookup?op=get&search=0x065EF82A1E02CC43