On Fri, 22 Jun 2001, giacomo wrote:
> > i've got this match in my sitemap:
> >
> > <map:match pattern="*">
> > <map:aggregate element="root">
> > <map:part src="plain/meta"/>
> > <map:part src="plain/{1}"/>
> > </map:aggregate>
> > <map:act type="resource-exists">
> > <map:parameter name="url" value="context://style/{1}.xsl"/>
> > <map:transform src="style/{../1}.xsl"/>
> > </map:act>
> > <map:select>
> > <map:when test="wap">
> > <map:transform src="style/wziml-wml.xsl"/>
> > <mal:serialize type="wap"/>
> > </map:when>
> > <map:otherwise>
> > <map:transform src="style/wziml-html.xsl"/>
> > <map:serialize type="html"/>
> > </map:otherwise>
> > </map:select>
> > </map:match>
> >
> > it used to work fine, although i had to use context:/// instead of
> > context://. i just updated the site to use the latest c2 from cvs and now
> > i get this exception:
>
> Hmm.. I thought I've double checked all the sources, webapps and also
> tested with the samples that use a context:/// and haven't found any
> issues.
okay, but that doesn't mean that it's working properly! _my_ sitemap
doesn't work. just testing the c2 samples isn't comprehensive. whatever
you did, broke my sitemap...!
> > org.apache.cocoon.sitemap.PatternException: error occurred during
> > evaluation of expression "context://style/{1}.xsl" at position 17
> > null
> > at
> > org.apache.cocoon.sitemap.AbstractSitemap.substitute(AbstractSitemap.java:301)
the underlying exception is:
java.lang.NullPointerException
at
org.apache.cocoon.sitemap.AbstractSitemap.substitute(AbstractSitemap.java:288)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN1F(sitemap_xmap.java:987)
which is this delightful line:
result.append(((Object)((Map)list.get(k)).get(s)).toString());
- donald
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]