Changeset 31905


Ignore:
Timestamp:
08/21/17 10:27:18 (3 years ago)
Author:
kjdon
Message:

handle case where rss has an error: just print it out. Would be nicer to make teh page look like teh about page or something, but this will do for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/rss.xsl

    r30778 r31905  
    1919    -->
    2020
    21  <xsl:template match="/page">
    22     <xsl:apply-templates select="pageResponse/rss"/>
     21  <xsl:template match="/page">
     22    <xsl:choose>
     23      <xsl:when test="pageResponse/rss">
     24    <xsl:apply-templates select="pageResponse/rss"/>
     25      </xsl:when>
     26      <xsl:when test="descendant::error">
     27      <div id="error">
     28            <xsl:apply-templates select="descendant::error"/>
     29      </div>
     30      </xsl:when>
     31      <xsl:otherwise><!-- do what?-->
     32      </xsl:otherwise>
     33    </xsl:choose>
    2334  </xsl:template>
    2435
Note: See TracChangeset for help on using the changeset viewer.