Commit 01ef4ace authored by Wolfgang's avatar Wolfgang

Overwrite spec for <ref> in teipublisher.odd: default ignores contained text.

parent b3336b0a
<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:pb="http://teipublisher.com/1.0" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
......@@ -49,22 +49,22 @@
<param name="content" value="replace(string-join(.//text()[not(parent::ref)]), '^(.*?)[^\w]*$', '$1')"/>
</model>
<model predicate="parent::figure" behaviour="block">
<outputRendition>
<outputRendition xml:space="preserve">
font-style: italic;
</outputRendition>
</model>
<model predicate="parent::table" behaviour="block">
<outputRendition>
<outputRendition xml:space="preserve">
font-style: italic;
</outputRendition>
</model>
<model predicate="parent::lg" behaviour="block">
<outputRendition>
<outputRendition xml:space="preserve">
font-style: italic;
</outputRendition>
</model>
<model predicate="parent::list" behaviour="block">
<outputRendition>
<outputRendition xml:space="preserve">
font-weight: bold;
</outputRendition>
</model>
......@@ -144,7 +144,7 @@
<model predicate="not(@level) and parent::bibl" behaviour="inline"/>
<modelSequence predicate="@level='m' or not(@level)">
<model behaviour="inline">
<outputRendition>
<outputRendition xml:space="preserve">
font-style: italic;
</outputRendition>
</model>
......@@ -154,7 +154,7 @@
</modelSequence>
<modelSequence predicate="@level='s' or @level='j'">
<model behaviour="inline">
<outputRendition>
<outputRendition xml:space="preserve">
font-style: italic;
</outputRendition>
</model>
......@@ -164,7 +164,7 @@
</modelSequence>
<modelSequence predicate="@level='u' or @level='a'">
<model behaviour="inline">
<outputRendition>
<outputRendition xml:space="preserve">
font-style: italic;
</outputRendition>
</model>
......@@ -173,14 +173,14 @@
</model>
</modelSequence>
<model behaviour="inline">
<outputRendition>
<outputRendition xml:space="preserve">
font-style: italic;
</outputRendition>
</model>
</elementSpec>
<elementSpec ident="author" mode="change">
<model predicate="ancestor::teiHeader" behaviour="block">
<outputRendition scope="before">
<outputRendition xml:space="preserve" scope="before">
content: 'By ';
</outputRendition>
</model>
......@@ -188,12 +188,22 @@
</elementSpec>
<elementSpec ident="edition" mode="change">
<model predicate="ancestor::teiHeader" behaviour="block">
<outputRendition scope="before">
<outputRendition xml:space="preserve" scope="before">
content: 'Edition: ';
</outputRendition>
</model>
</elementSpec>
<elementSpec ident="ref" mode="change">
<model predicate="not(@target)" behaviour="inline"/>
<model predicate="not(node())" behaviour="link">
<param name="content" value="@target"/>
<param name="uri" value="@target"/>
</model>
<model behaviour="link">
<param name="uri" value="@target"/>
</model>
</elementSpec>
</schemaSpec>
</body>
</text>
</TEI>
</TEI>
\ No newline at end of file
......@@ -13,6 +13,8 @@ declare namespace xhtml='http://www.w3.org/1999/xhtml';
declare namespace xi='http://www.w3.org/2001/XInclude';
declare namespace pb='http://teipublisher.com/1.0';
import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace html="http://www.tei-c.org/tei-simple/xquery/functions";
......@@ -321,7 +323,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
html:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
html:link($config, ., ("tei-ref2"), @target, @target, (), map {})
else
html:link($config, ., ("tei-ref3"), ., @target, (), map {})
......
......@@ -13,6 +13,8 @@ declare namespace xhtml='http://www.w3.org/1999/xhtml';
declare namespace xi='http://www.w3.org/2001/XInclude';
declare namespace pb='http://teipublisher.com/1.0';
import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace latex="http://www.tei-c.org/tei-simple/xquery/functions/latex";
......@@ -316,7 +318,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
latex:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
latex:link($config, ., ("tei-ref2"), @target, @target, map {})
else
latex:link($config, ., ("tei-ref3"), ., @target, map {})
......
......@@ -13,6 +13,8 @@ declare namespace xhtml='http://www.w3.org/1999/xhtml';
declare namespace xi='http://www.w3.org/2001/XInclude';
declare namespace pb='http://teipublisher.com/1.0';
import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace fo="http://www.tei-c.org/tei-simple/xquery/functions/fo";
......@@ -316,7 +318,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
fo:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
fo:link($config, ., ("tei-ref2"), @target, @target, map {})
else
fo:link($config, ., ("tei-ref3"), ., @target, map {})
......
......@@ -13,6 +13,8 @@ declare namespace xhtml='http://www.w3.org/1999/xhtml';
declare namespace xi='http://www.w3.org/2001/XInclude';
declare namespace pb='http://teipublisher.com/1.0';
import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace html="http://www.tei-c.org/tei-simple/xquery/functions";
......@@ -319,7 +321,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
html:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
html:link($config, ., ("tei-ref2"), @target, @target, (), map {})
else
html:link($config, ., ("tei-ref3"), ., @target, (), map {})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment