blob: 27b955be2d11bd31b0f936519f8cc4c35b90cb6e [file] [log] [blame]
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<!-- FileName: ErrorListenerTest -->
<!-- Creator: shane_curcuru@lotus.com -->
<!-- Purpose: Various tests that ErrorListeners get called for illegal stylesheets. -->
<!-- ExpectedMessage: TBD -->
<!-- ExpectedError: TBD -->
<!-- ExpectedFatalError: xsl:decimal-format names must be unique. Name "myminus" has been duplicated -->
<!-- duplicating decimal-format names is illegal, but shouldn't
affect other processing in the stylesheet, so it should be
recoverable, allowing processing to continue.
-->
<xsl:decimal-format name="myminus" minus-sign='_' />
<xsl:decimal-format name="myminus" minus-sign='`' />
<xsl:template match="list">
<list-out>
<xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
<xsl:message terminate="no">ExpectedMessage from:<xsl:value-of select="@name"/></xsl:message>
<xsl:apply-templates/>
</list-out>
</xsl:template>
<xsl:template match="item">
<item-out>
<xsl:value-of select="."/>
</item-out>
</xsl:template>
<!--
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->
</xsl:stylesheet>