cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ed Staub" <est...@mediaone.net>
Subject RE: XSL Stylesheet warning message
Date Fri, 14 Jul 2000 23:58:05 GMT
Remove this template:

<!--
Template to over-ride built in default to text copy
-->
<xsl:template match="text()|@*">
</xsl:template>

The message is pretty clear; you have two templates arguing over who should
handle these patterns.

-Ed

-----Original Message-----
From: Jose.Carlos@iint.com [mailto:Jose.Carlos@iint.com]
Sent: Friday, July 14, 2000 6:05 PM
To: cocoon-dev@xml.apache.org
Subject: XSL Stylesheet warning message





Hi,

We are getting an XSL warning message from the BEA Weblogic server
where we are running Apache Cocoon's XML Processor.

The following is the XSL stylesheet:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
     <xsl:apply-templates/>
</xsl:template>

<!--
Template to over-ride built in default to text copy
-->
<xsl:template match="text()|@*">
</xsl:template>

<xsl:template match="* | text() | @*">
        <xsl:copy>
              <xsl:apply-templates select="@*"/>
              <xsl:apply-templates/>
         </xsl:copy>
</xsl:template>

</xsl:stylesheet>


And here is the warning message when we process an XHTML document using this
XSL:

"XSL Warning:Specificity conflicts found:  "* | text() | @*", text()|@*"
Last
found in stylesheet will be used.

Has any of you guys encountered this before ? What are its implications ?

Thanks.





Mime
View raw message