Ignore:
Timestamp:
06/09/11 21:52:13 (13 years ago)
Author:
vronk
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/src/xsl/test2view.xsl

    r1406 r1408  
    11<?xml version="1.0"?>
    2 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     2<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     3 xmlns:diag="http://www.loc.gov/zing/srw/diagnostic">
    34
    45<!--
     
    3738                        </xsl:when>
    3839                        <xsl:otherwise>
    39                                         <xsl:copy-of select="document(concat($base_url,@href))" />
     40                                        <xsl:apply-templates select="document(concat($base_url,@href))" mode="process-query"/>
    4041                        </xsl:otherwise>
    4142                </xsl:choose>
     
    5051</xsl:template>
    5152
     53<!--
     54 <diagnostics>
     55        <diagnostic xmlns="http://www.loc.gov/zing/srw/diagnostic">
     56    <uri>info:srw/diagnostic/1/1</uri>   
     57    <message>Exception occurred: Connection refused: connect</message>
     58-->
     59<xsl:template match="diagnostics" mode="process-query" >
     60        <div class="error" >
     61                 <xsl:value-of select="diag:diagnostic/diag:message" />
     62        </div> 
     63</xsl:template>
     64
    5265
    5366</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.