1 <?xml version="1.0"?>
   2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   3 <xsl:output method="xml"/>
   4 
   5 <!-- FileName: ErrorListenerTest -->
   6 <!-- Creator: shane_curcuru@lotus.com -->
   7 <!-- Purpose: Various tests that ErrorListeners get called for illegal stylesheets. -->
   8 <!-- ExpectedMessage: TBD -->
   9 <!-- ExpectedError: TBD -->
  10 <!-- ExpectedFatalError: xsl:decimal-format names must be unique. Name "myminus" has been duplicated -->
  11 
  12 <!-- duplicating decimal-format names is illegal, but shouldn't 
  13      affect other processing in the stylesheet, so it should be 
  14      recoverable, allowing processing to continue.
  15 --> 
  16 <xsl:decimal-format name="myminus" minus-sign='_' />
  17 <xsl:decimal-format name="myminus" minus-sign='`' />
  18 
  19 <xsl:template match="list">
  20   <list-out>
  21     <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
  22     <xsl:message terminate="no">ExpectedMessage from:<xsl:value-of select="@name"/></xsl:message>
  23     <xsl:apply-templates/>
  24   </list-out>
  25 </xsl:template>
  26 
  27 <xsl:template match="item">
  28   <item-out>
  29     <xsl:value-of select="."/>
  30   </item-out>
  31 </xsl:template>
  32 
  33 </xsl:stylesheet>