1<?xml version="1.0"?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 4<!-- 5 Licensed to the Apache Software Foundation (ASF) under one or more 6 contributor license agreements. See the NOTICE file distributed with 7 this work for additional information regarding copyright ownership. 8 The ASF licenses this file to You under the Apache License, Version 2.0 9 (the "License"); you may not use this file except in compliance with 10 the License. You may obtain a copy of the License at 11 12 http://www.apache.org/licenses/LICENSE-2.0 13 14 Unless required by applicable law or agreed to in writing, software 15 distributed under the License is distributed on an "AS IS" BASIS, 16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 See the License for the specific language governing permissions and 18 limitations under the License. 19--> 20 21 <xsl:strip-space elements="checkstyle"/> 22 <xsl:preserve-space elements="file"/> 23 <xsl:output method="text"/> 24 <xsl:template match="checkstyle/file/error"> 25 <xsl:value-of select="../@name"/> 26 <xsl:text>:</xsl:text> 27 <xsl:value-of select="@line"/> 28 <xsl:text>:</xsl:text> 29 <xsl:value-of select="@column"/> 30 <xsl:text> </xsl:text> 31 <xsl:value-of select="@message"/> 32 </xsl:template> 33</xsl:stylesheet> 34 35