I have a stylesheet that stoppend working when I upgraded to the latest 
HEAD. Maybe it's due to the latest Xalan that is included. The relevant 
snippet from the logs follows. I've also attached the stylesheet.

----- Root Cause -----
java.lang.NoSuchMethodError
         at 
org.apache.xalan.processor.ProcessorKey.setPropertiesFromAttributes(ProcessorKey.java:161)
         at 
org.apache.xalan.processor.ProcessorKey.startElement(ProcessorKey.java:110)
         at 
org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:665)
         at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
         at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:217)
         at 
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:873)
         at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:590)
         at 
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:777)
         at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:748)
         at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1453)
         at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
         at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
         at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
         at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
         at 
org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)
         at 
org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:226)
         at 
org.apache.excalibur.xmlizer.impl.TextXMLizer.toSAX(TextXMLizer.java:92)
         at 
org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX(XMLizerImpl.java:75)
         at 
org.apache.avalon.excalibur.xml.xslt.XSLTProcessorImpl.sourceToSAX(XSLTProcessorImpl.java:295)
         at 
org.apache.avalon.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandlerAndValidity(XSLTProcessorImpl.java:221)
         at 
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:331)
         at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:380)
         at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:289)
         at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:474)
         at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:146)
         at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
         at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:160)
         at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
         at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:157)


-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]
<?xml version="1.0"?>

<!-- $Id: blog.xsl,v 1.7 2002/07/16 09:02:44 ugocei Exp $ -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
                xmlns:dc="http://purl.org/dc/elements/1.1/";
                xmlns:content="http://purl.org/rss/1.0/modules/content/";
                xmlns:rss="http://purl.org/rss/1.0/";
                xmlns:src="http://xml.apache.org/xindice/Query";
                xmlns:cocoblog="http://www.cocoblog.org/CocoBlog";
                xmlns:html="http://www.w3.org/1999/xhtml";		
                xmlns="http://www.w3.org/1999/xhtml";		
                exclude-result-prefixes="rdf rss dc content src html"
                version="1.0">

 <xsl:param name="base"/>
 <xsl:param name="show-content" select="yes"/>
 <xsl:param name="xopus"/>

 <xsl:key name="date-group" match="rss:item" use="substring(dc:date,1,10)"/>

 <xsl:template match="content">

  <xsl:variable name="title">
    <xsl:choose>
      <xsl:when test="count(log/rdf:RDF/rss:item/dc:title)=1">
        Be Blogging: <xsl:value-of select="log/rdf:RDF/rss:item/dc:title"/>
      </xsl:when>
      <xsl:otherwise>Be Blogging</xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  
  <html lang="en">
   <head>
    <title><xsl:value-of select="$title"/></title>
    <link href="http://caterina.cbim.it:8080/cocoon/blog/index.rss"; title="RSS 1.0" type="application/rss+xml" rel="alternate"/>    
    <link href="http://caterina.cbim.it:8080/cocoon/blog/index092.rss"; title="RSS 0.92" type="application/rss+xml" rel="alternate"/>
    <xsl:if test="$base"><base href="{$base}"/></xsl:if>
    <xsl:choose>
      <xsl:when test="log/rdf:RDF/rss:item/dc:subject">
        <meta name="KEYWORDS">
          <xsl:attribute name="content">
            <xsl:for-each select="log/rdf:RDF/rss:item/dc:subject"><xsl:value-of select="."/>, </xsl:for-each>Cocoon, Apache, Java, XML, XSLT</xsl:attribute>
        </meta>
      </xsl:when>
      <xsl:otherwise>
        <meta name="KEYWORDS" content="Cocoon, Apache, Java, XML, XSLT"/>
      </xsl:otherwise>
    </xsl:choose>
    <style type="text/css" media="screen">@import "styles/default.css";</style>
    <!-- <link rel="alternate stylesheet" title="Lightning" href="styles/lightning-bg.css" type="text/css" media="screen"/> -->

<!-- JavaScript to print the mailto: 
     link or email address to the browser.  -->
    <script language="JavaScript" type="text/javascript">
     <xsl:comment>
<![CDATA[
var lhs = "u.cei";
var rhs = "cbim.it";
function print_mail_to_link() {
	document.write("<a href=\"mailto");
	document.write(":" + lhs + "@");
	document.write(rhs + "\">Mail me!<\/a>");
}
]]>
     </xsl:comment>
    </script>
    
    <!-- From Xopus -->
    <xsl:if test="$xopus">
      <script language="javascript">
        <xsl:comment>
          var CMS = 'cocoblog';
        </xsl:comment>
      </script>
      <script language="javascript" src="xopus/xopus.js">
        <xsl:comment>
        </xsl:comment>
      </script>
    </xsl:if>

   </head>
   <body>

     <h1 id="header">
      <a href="http://caterina.cbim.it:8080/cocoon/blog/"; title="Home page">Be Blogging</a>
     </h1>
     <xsl:apply-templates select="log|search-results|xhtml|amazon-results"/>
     
     <xsl:if test="$xopus">
      <div xopus="true" autostart="true" id="editor">
        Post your entry here when the Xopus toolbar appears.
        <xml>
          <pipeline xml="data/cocoblog.xml" xsd="data/cocoblog.xsd">
            <view id="defaultView" default="true">
              <transform xsl="data/cocoblog.xsl"></transform>
            </view>
            <view id="treeView">
              <transform xsl="xopus/treeview/tree.xsl"></transform>
            </view>
          </pipeline>
        </xml>
      </div>
    </xsl:if>
     
    <div id="menu">
     <p style="font-weight:bold;font-size:14px;"><a href="http://caterina.cbim.it:8080/cocoon/blog/";>&gt;&gt; Home</a></p>
     <xsl:if test="amazon-results">
       <p style="font-weight:bold;font-size:14px;"><a href="#amazon">&gt;&gt; Amazon Links</a></p>
     </xsl:if>
     <xsl:apply-templates select="//links"/>
     <span class="sectionheader">About</span>
     <p>
      &#183;&#160;<script language="JavaScript" type="text/javascript">
       print_mail_to_link();
      </script><br/>
      &#183;&#160;<a href="docs">README FIRST!</a>
     </p>
     <p>&#160;</p>
     <p>&#160;</p>
     <p style="text-align:center">
      <a href="index092.rss"><img
         src="images/xml.gif"
         alt="RSS 0.92 feed" 
         height="14" width="36"
         title="Click to see the XML version of this web page"/></a>
     </p>
     <p style="text-align:center">
      <a href="http://127.0.0.1:5335/system/pages/subscriptions?url=http://caterina.cbim.it:8080/cocoon/blog/index092.rss";><img
         src="images/xmlCoffeeCup.gif"
         alt="XML Coffee Cup" 
         title="Click on the XML coffee mug to subscribe to &quot;{$title}&quot;" 
         height="36" width="36"/></a>
     </p>
     <p style="text-align:center">
      <a href="index.rss"><img
         src="images/rdf.png"
         alt="RSS 1.0 feed" title="RSS 1.0 feed" height="14" width="36"/></a>
     </p>
     <p style="text-align:center">
      <a href="http://xml.apache.org/cocoon/";><img
         src="images/poweredbycocoon.png"
         alt="built with Apache Cocoon" 
         title="Apache Cocoon" 
         height="31" width="88"/></a>
     </p>
     <p style="text-align:center">
      <a href="http://xml.apache.org/xindice/";><img
         src="images/xindice119x37.jpg"
         alt="powered by Apache Xindice" 
         title="Apache Xindice" 
         height="37" width="119"/></a>
     </p>
    </div>
    <div id="footer">
    </div>
   </body>
  </html>
 </xsl:template>

 <xsl:template match="log">
   <xsl:apply-templates select="rdf:RDF"/>
 </xsl:template>
 
 <xsl:template match="rdf:RDF">
    <h2 id="subtitle">
     <xsl:choose>
      <xsl:when test="cocoblog:title">
       <xsl:value-of select="cocoblog:title"/>
      </xsl:when>
      <xsl:otherwise>
       <xsl:value-of select="rss:channel/rss:description"/>
      </xsl:otherwise>
     </xsl:choose>
    </h2>
  <div id="log">
    <xsl:for-each select=".//rss:item[dc:date and generate-id() = generate-id(key('date-group', substring(dc:date,1,10))[1])]">
        <h3>
         <xsl:value-of
           select="SimpleDateFormat:format(SimpleDateFormat:new('EEEE, MMMM dd, yyyy'),(SimpleDateFormat:parse(SimpleDateFormat:new('yyyy-MM-dd'),dc:date)))"
           xmlns:Date="xalan://java.util.Date"
           xmlns:SimpleDateFormat="xalan://java.text.SimpleDateFormat"/>
        </h3>
      <xsl:for-each select="key('date-group', substring(dc:date,1,10))">
       <xsl:call-template name="item"/>
      </xsl:for-each>
    </xsl:for-each>
   <xsl:apply-templates select="rss:image"/>
  </div>
  <xsl:if test="rss:channel/dc:date">
    <p id="last-updated">Last updated on
      <xsl:value-of select="rss:channel/dc:date"/></p>
  </xsl:if>
  <xsl:if test="rss:channel/dc:rights">
    <p id="rights"><xsl:value-of select="rss:channel/dc:rights"/></p>
  </xsl:if>
 </xsl:template>

 <xsl:template name="item">
   <xsl:choose>
     <xsl:when test="dc:title|rss:title">
       <h4><a href="{rss:link|@rdf:about}"><xsl:value-of 
         select="dc:title|rss:title" disable-output-escaping="yes"/></a></h4>
     </xsl:when>
     <xsl:otherwise>
       <h4><a href="{rss:link|@rdf:about}">(Untitled)</a></h4>
     </xsl:otherwise>
   </xsl:choose>
   <xsl:if test="not($show-content = 'no')">
     <xsl:choose>
      <xsl:when test=".//rdf:value/html:*|.//rdf:value/*">
       <xsl:copy-of select=".//rdf:value/html:*|.//rdf:value/*"/>
      </xsl:when>
      <xsl:when test="rss:description">
       <p><xsl:value-of select="rss:description" disable-output-escaping="yes"/></p>
      </xsl:when>
     </xsl:choose>
     <p class="timestamp">
      <xsl:choose>
       <xsl:when test="contains(dc:date, 'T')">
        <xsl:value-of select="substring-after(dc:date,'T')"/>&#160;
       </xsl:when>
      </xsl:choose>
      <xsl:if test="dc:subject">
        | <a href="google?q={translate(dc:subject,' ','+')}">Google It!</a> |
      </xsl:if>
      <xsl:choose>
      <!--
       <xsl:when test="@src:key">
        <a href="{@src:key}" title="Permanent link">#</a>&#160;
       </xsl:when>
      -->
       <xsl:when test="@rdf:about">
        <a href="{dc:identifier}" title="Permanent link">#</a><!-- |
        <a href="comment({dc:identifier})">Comment</a>&#160; -->
       </xsl:when>
      </xsl:choose>
     </p>
   </xsl:if>
 </xsl:template>

 <xsl:template match="rss:image">
   <a href="{rss:link}">
     <img src="{rss:url}" title="{rss:title}" border="0"
     alt="{rss:title}"/></a>
 </xsl:template>

 <xsl:template match="feed-list">
  <div id="log">
    <form method="get" action="admin/getfeed">
      <input type="text" size="50" name="url"/>
      <input type="submit" value="Add URL"/>
    </form>
   <xsl:for-each select="rdf:RDF/rss:item">
    <h3><xsl:value-of select="rss:title"/></h3>
    <p><xsl:value-of select="rss:description"/></p>
    <p><a href="admin/addfeed?url={URLEncoder:encode(cocoblog:url)}&amp;title={URLEncoder:encode(rss:title)}&amp;description={URLEncoder:encode(rss:description)}"
      xmlns:URLEncoder="xalan://java.net.URLEncoder">Update now!</a></p>
   </xsl:for-each>
  </div>
 </xsl:template>

 <xsl:template match="rss/channel">
   <h3>
    <a href="{link}"><xsl:value-of select="title"/></a>
    <xsl:if test="description">
     <small><i> - <xsl:value-of select="description"/></i></small>
    </xsl:if>
   </h3>
   <xsl:apply-templates select="lastBuildDate"/>
   <xsl:apply-templates select="item"/>
 </xsl:template>

 <xsl:template match="lastBuildDate">
   <p>Updated on: <xsl:value-of select="."/>.
   <a href="admin/getfeed?url={../source/@url}">Update now!</a>
   </p>
 </xsl:template>

 <xsl:template match="item">
  <xsl:if test="title">
   <h4><a href="{link}"><xsl:value-of select="title"/></a></h4>
  </xsl:if>
  <xsl:if test="description">
    <div class="rss-item-desc">
      <xsl:value-of select="description" disable-output-escaping="yes"/>
      <xsl:apply-templates select="link"/>
    </div>
    <hr/>
  </xsl:if>
 </xsl:template>
 
 <xsl:template match="link">
   <br/><a href="{.}"><i> More...</i></a>
 </xsl:template>

 <xsl:template match="links">
   <span class="sectionheader"><xsl:value-of select="rdf:RDF/rss:channel/rss:title"/></span>
   <p>
    <xsl:for-each select="rdf:RDF/rss:item">
     &#183;&#160;<a href="{rss:link}" title="{rss:description}"><xsl:value-of 
      select="rss:title"/></a><br/>
    </xsl:for-each>
   </p>
 </xsl:template>

  <xsl:template match="search-results">
    <div id="subtitle">
     <img src="images/googleLogo.gif" 
      alt="Google Logo" title="Google" border="0" width="128" height="53"
      align="middle"/> Search Results
    </div>
    <div id="log">
      <xsl:copy-of select="*"/>
    </div>
  </xsl:template>

 <xsl:template match="xhtml">
   <div id="subtitle"><xsl:value-of select="html/head/title"/></div>
   <div id="xhtml">
     <xsl:copy-of select="html/body/*"/>
   </div>
 </xsl:template>

 <xsl:template match="amazon-results">
   <a name="amazon"/><div id="xhtml">
     <xsl:copy-of select="*"/>
     <a href="http://www.amazon.com/exec/obidos/redirect-home?tag=beblogging-20";><img
      src="images/home-logo-130x60w.gif" border="0" width="130" height="60"
      alt="In Association with Amazon.com"/></a>
   </div>
 </xsl:template>
 
</xsl:stylesheet>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to