cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Sedlmeyer <>
Subject help with a sitemap problem
Date Fri, 15 Mar 2002 19:39:24 GMT
Ok, I've looked through the docs and near as I can tell this should be
Ok...although it clearly isn't.  I have the following pipeline in my

      <map:match pattern="foo">
        <map:generate  src="content/foo.xml"/>
        <map:transform  src="transforms/foo.xsl">
          <map:parameter name="use-request-parameters" value="true"/>
        <map:serialize type="xml"/>
      <map:match pattern="bar.html">
          <map:part src="content/bar.xml"/>
          <map:part src="cocoon:/foo"/>
        <map:transform  src="transforms/foobar.xsl"/>
        <map:serialize type="html"/>

If I understand things correctly this should result in the agregation of the
file bar.xml and the xml output of the pipeline matching the request for
/foo defined above being transformed by the stylesheet foobar.xsl when I
request bar.html.  Instead I get the following error at the browser:

type fatal
message Language Exception
description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 1262, column 97: '}' expected Line 0, column 0: 1 error 
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet

And, when I check out the generated java source the final method in the file
is the following:

//line numbers not supported with wildc// method for handling "bar.html"
    private final boolean matchN101A6(
                                    SitemapRedirector redirector,
                                    Environment environment, StreamPipeline
                                    EventPipeline eventPipeline,
                                    boolean internalRequest, List
            throws ConnectionResetException, ResourceNotFoundException,
Exception {
        Map map;
        Parameters param;
        Map objectModel = environment.getObjectModel();
        String cocoon_view = environment.getView();
        String cocoon_action = environment.getAction();
        final boolean debug_enabled = getLogger().isDebugEnabled();

        if ((map = matches("wildcard", matcher_N101A6_expr, "bar.html",
Parameters.EMPTY_PARAMETERS, objectModel)) != null) {
          if (debug_enabled) getLogger().debug("Matched wildcard pattern
          listOfMaps.add (map);

    eventPipeline.setGenerator ("!content-aggregator!",
              null, Parameters.EMPTY_PARAMETERS
    ContentAggregator contentAggregator_N101A9 =

No, I didn't miss part of it, that's where it stops...  I'm getting really
tired of scratching my head and looking stupid when people ask me if I've
gotten it to work yet so I'm getting desperate for some help.  I'd really
appreciate it if someone could at least point me in the right direction to
figure this out.

Thanks in advance,

Steve Sedlmeyer

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message