comparison software/eXist/webapp/mpdl/presentation/pageHtml.xsl @ 9:1ec29fdd0db8

neue .lex Dateien f?r Normalisierung / externe Objekte update
author Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de>
date Tue, 22 Feb 2011 16:03:45 +0100
parents d2a1c14fde31
children d6f528ad5d96
comparison
equal deleted inserted replaced
8:d2a1c14fde31 9:1ec29fdd0db8
811 811
812 <xsl:template match="head" mode="text"> 812 <xsl:template match="head" mode="text">
813 <p class="bf center"><xsl:apply-templates mode="text"/></p> 813 <p class="bf center"><xsl:apply-templates mode="text"/></p>
814 </xsl:template> 814 </xsl:template>
815 815
816 <!-- TEI: segmentation -->
817 <xsl:template match="seg" mode="text">
818 <span class="seg">
819 <xsl:if test="not(empty(@xlink:href))">
820 <a>
821 <xsl:attribute name="href"><xsl:value-of select="@xlink:href"/></xsl:attribute>
822 <xsl:apply-templates mode="text"/>
823 </a>
824 </xsl:if>
825 <xsl:if test="empty(@xlink:href)">
826 <xsl:apply-templates mode="text"/>
827 </xsl:if>
828 </span>
829 </xsl:template>
830
816 <xsl:template match="div" mode="text"> 831 <xsl:template match="div" mode="text">
817 <xsl:variable name="type" select="@type"/> 832 <xsl:variable name="type" select="@type"/>
818 <xsl:variable name="level" select="@level"/> 833 <xsl:variable name="level" select="@level"/>
819 <xsl:variable name="style" select="@style"/> 834 <xsl:variable name="style" select="@style"/>
820 <xsl:variable name="border" select="@border"/> 835 <xsl:variable name="border" select="@border"/>
930 <xsl:if test="$collectionName = 'echo' and contains($class, 'sc') and $first2CharsAreUppercase"><span class="dc {$style}"><xsl:value-of select="$firstChar"/></span><span class="{$class} {$style}"><xsl:sequence select="$rest"/></span></xsl:if> 945 <xsl:if test="$collectionName = 'echo' and contains($class, 'sc') and $first2CharsAreUppercase"><span class="dc {$style}"><xsl:value-of select="$firstChar"/></span><span class="{$class} {$style}"><xsl:sequence select="$rest"/></span></xsl:if>
931 <xsl:if test="$collectionName = 'echo' and contains($class, 'sc') and not($first2CharsAreUppercase)"><span class="{$class} {$style}"><xsl:apply-templates mode="text"/></span></xsl:if> 946 <xsl:if test="$collectionName = 'echo' and contains($class, 'sc') and not($first2CharsAreUppercase)"><span class="{$class} {$style}"><xsl:apply-templates mode="text"/></span></xsl:if>
932 <xsl:if test="$collectionName = 'archimedes'"><xsl:apply-templates mode="text"/></xsl:if> 947 <xsl:if test="$collectionName = 'archimedes'"><xsl:apply-templates mode="text"/></xsl:if>
933 </xsl:template> 948 </xsl:template>
934 949
950 <!-- TEI: reference -->
935 <xsl:template match="ref" mode="text"> 951 <xsl:template match="ref" mode="text">
936 <span class="ref"><xsl:apply-templates mode="text"/></span> 952 <span class="ref">
953 <xsl:if test="not(empty(@target))">
954 <a>
955 <xsl:attribute name="href"><xsl:value-of select="@target"/></xsl:attribute>
956 <xsl:apply-templates mode="text"/>
957 </a>
958 </xsl:if>
959 <xsl:if test="empty(@target)">
960 <xsl:apply-templates mode="text"/>
961 </xsl:if>
962 </span>
937 </xsl:template> 963 </xsl:template>
938 964
939 <xsl:template match="foreign" mode="text"> 965 <xsl:template match="foreign" mode="text">
940 <xsl:variable name="lang" select="@lang"/> 966 <xsl:variable name="lang" select="@lang"/>
941 <xsl:variable name="xmllang" select="@xml:lang"/> 967 <xsl:variable name="xmllang" select="@xml:lang"/>
1039 <xsl:attribute name="href"><xsl:value-of select="concat(urlBase, '#', $href)"/></xsl:attribute> 1065 <xsl:attribute name="href"><xsl:value-of select="concat(urlBase, '#', $href)"/></xsl:attribute>
1040 <xsl:attribute name="class"><xsl:value-of select="'super'"/></xsl:attribute> 1066 <xsl:attribute name="class"><xsl:value-of select="'super'"/></xsl:attribute>
1041 <xsl:value-of select="concat('↓ (', $href, ')')"/> 1067 <xsl:value-of select="concat('↓ (', $href, ')')"/>
1042 </a> 1068 </a>
1043 </xsl:when> 1069 </xsl:when>
1044 <xsl:otherwise><a><xsl:attribute name="href"><xsl:value-of select="$href"/></xsl:attribute>Anchor of type: <xsl:value-of select="$type"/>, href: <xsl:value-of select="$href"/></a></xsl:otherwise> 1070 <xsl:otherwise><a><xsl:attribute name="href"><xsl:value-of select="$href"/></xsl:attribute><xsl:apply-templates mode="text"/></a></xsl:otherwise>
1045 </xsl:choose> 1071 </xsl:choose>
1046 </xsl:template> 1072 </xsl:template>
1047 1073
1048 <!-- GIS Elements --> 1074 <!-- GIS Elements -->
1049 <xsl:template match="place" mode="text"> 1075 <xsl:template match="place" mode="text">
1189 <a name="sn{$actualSN}"></a> 1215 <a name="sn{$actualSN}"></a>
1190 <xsl:choose> 1216 <xsl:choose>
1191 <!-- Show the sentence in color light grey if it is given as sn --> 1217 <!-- Show the sentence in color light grey if it is given as sn -->
1192 <xsl:when test="$sn >= 0 and $sn = $actualSN"> 1218 <xsl:when test="$sn >= 0 and $sn = $actualSN">
1193 <span class="s highlight"> 1219 <span class="s highlight">
1194 <xsl:if test="contains($options, 'withXmlNodeId')"><xsl:attribute name="xmlNodeId"><xsl:value-of select="@xmlNodeId"/></xsl:attribute></xsl:if> 1220 <xsl:if test="not(empty(@xmlNodeId))"><xsl:attribute name="xmlNodeId"><xsl:value-of select="@xmlNodeId"/></xsl:attribute></xsl:if>
1195 <xsl:apply-templates mode="text"/> 1221 <xsl:apply-templates mode="text"/>
1196 </span> 1222 </span>
1197 </xsl:when> 1223 </xsl:when>
1198 <xsl:otherwise> 1224 <xsl:otherwise>
1199 <span class="s"> 1225 <span class="s">
1200 <xsl:if test="contains($options, 'withXmlNodeId')"><xsl:attribute name="xmlNodeId"><xsl:value-of select="@xmlNodeId"/></xsl:attribute></xsl:if> 1226 <xsl:if test="not(empty(@xmlNodeId))"><xsl:attribute name="xmlNodeId"><xsl:value-of select="@xmlNodeId"/></xsl:attribute></xsl:if>
1201 <xsl:apply-templates mode="text"/> 1227 <xsl:apply-templates mode="text"/>
1202 </span> 1228 </span>
1203 </xsl:otherwise> 1229 </xsl:otherwise>
1204 </xsl:choose> 1230 </xsl:choose>
1205 </xsl:template> 1231 </xsl:template>