[36292] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <xsl:stylesheet version="1.0"
|
---|
| 3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
| 4 | xmlns:java="http://xml.apache.org/xslt/java"
|
---|
| 5 | xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
|
---|
| 6 | xmlns:gslib="http://www.greenstone.org/skinning"
|
---|
| 7 | xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
|
---|
| 8 | extension-element-prefixes="java util"
|
---|
| 9 | exclude-result-prefixes="java util gsf">
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | <xsl:template name="documentNodeText">
|
---|
| 13 |
|
---|
| 14 | <xsl:param name="force">0</xsl:param>
|
---|
| 15 | <!-- Hides the "This document has no text." message -->
|
---|
| 16 | <xsl:variable name="noText"><gsf:metadata name="NoText"/></xsl:variable>
|
---|
| 17 | <xsl:choose>
|
---|
| 18 | <xsl:when test="$force = '1' or not($noText = '1')">
|
---|
| 19 |
|
---|
| 20 | <!-- Section text -->
|
---|
| 21 | <xsl:for-each select="nodeContent">
|
---|
| 22 | <!--<xsl:call-template name="displayMarkedUpTextAndAnnotations"/>-->
|
---|
| 23 | MIAO
|
---|
| 24 | <!-- https://stackoverflow.com/questions/2463155/how-to-unescape-xml-characters-with-help-of-xslt -->
|
---|
| 25 | <!--<xsl:value-of select="." disable-output-escaping="yes" />-->
|
---|
| 26 | <xsl:variable name="lomxml"><xsl:value-of select="." disable-output-escaping="yes" /></xsl:variable>
|
---|
| 27 | <!--<xsl:apply-templates select="$lomxml"/>-->
|
---|
| 28 | <xsl:value-of select="$lomxml"/>
|
---|
| 29 | </xsl:for-each>
|
---|
| 30 | </xsl:when>
|
---|
| 31 | <xsl:when test="$noText = '1' and not(metadataList/metadata[@name='ImageType'])">
|
---|
| 32 | <gsf:link type="source"><gsf:metadata name="Source"/></gsf:link>
|
---|
| 33 | </xsl:when>
|
---|
| 34 | </xsl:choose>
|
---|
| 35 | <xsl:text> </xsl:text>
|
---|
| 36 | </xsl:template>
|
---|
| 37 |
|
---|
| 38 |
|
---|
| 39 | <xsl:template match="*">
|
---|
| 40 | <xsl:value-of select="."/>
|
---|
| 41 | </xsl:template>
|
---|
| 42 |
|
---|
| 43 | </xsl:stylesheet>
|
---|
| 44 |
|
---|