Jörn Nettingsmeier wrote:
well, the catalogue.xsp is invoked by i18n.xmap, using the fallback:// protocol. that means it is invoked exactly once, at whichever level it is found first. so no "induction" in the sitemap.

so it must happen in the xsp itself. here it is:

<xsp:page
  language="java"
  xmlns:xsp="http://apache.org/xsp";
  xmlns:xi="http://www.w3.org/2001/XInclude";
 >
  <xsp:structure>
    <xsp:include>java.io.File</xsp:include>
    <xsp:include>org.apache.excalibur.source.Source</xsp:include>
  </xsp:structure>
  <catalogue>
    <xsp:logic>
      final Source pubCatalogue =
        resolver.resolveURI(parameters.getParameter(
                "pub-catalogue-location", "null") +
        parameters.getParameter(
                "catalogue-file", "null"));

these parameters resolve to "fallback://lenya/resources/i18n" and "cmsui" (the latter is implicitly set as default in the transformer declaration in the root sitemap).
again, just one file, no recursion.

      if(pubCatalogue.exists())
      {
          <xi:include >
<xsp:attribute name="href"><xsp:expr>pubCatalogue.getURI()</xsp:expr>#xpointer(//message)</xsp:attribute>
          </xi:include>
       }

so this includes "fallback://lenya/resources/i18n/cmsui#xpointer(//message)", right?

      <xi:include >
<xsp:attribute name="href"><xsp:expr>parameters.getParameter("catalogue-file", "null")</xsp:expr>#xpointer(//message)</xsp:attribute>
      </xi:include>

and this includes "cmsui#xpointer(//message)". where on earth does this come from? we are in the context of lenya/i18n.xmap. there is no match for that request in any sitemap.... in my understanding, this should not include anything at all.
i'm really really confused.

i just woke up realizing that this is a file URI, not a cocoon:// one.
so obviously it includes the cmsui file from the directory the xsp is
in. that means it merges the messages from the current publication.

but the way i read it, the first include with
"fallback://lenya/resources/i18n/cmsui" should include the very same
file. i could understand the workings if it was "template-fallback"
instead... can anyone explain?


    </xsp:logic>
  </catalogue>



--
"Open source takes the bullshit out of software."
        - Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736


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

Reply via email to