https://issues.apache.org/bugzilla/show_bug.cgi?id=46848

           Summary: Problem including pages of external publication
           Product: Lenya
           Version: 2.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Navigation Framework
        AssignedTo: dev@lenya.apache.org
        ReportedBy: geldner.list....@gmx.net


Hi,

we want to include a page of another publication into the current one.

* I added a new page to my publication called "includetest".

* In the body of that page I added only one div element:
  <div id="refsea"></div>

* In the XSLT stylesheet webapps/lenya/lenya/pubs/mypub/xslt/page2xhtml.xsl I
added the following template:
 <xsl:template match="xhtml:d...@id = 'refsea']">
    <ci:include
src="lenya-document:c420b7f0-5ed0-11dd-aaf2-d7972f130a48,pub=ecount?format=xhtml"/>
 </xsl:template>

* I added the transformer
<map:transform type="cinclude"/>
to the pattern
<map:match pattern="lenyabody-*/*/*/*/**"> just before
<map:transform type="uuid2url"/>.
It works fine when including pages of the same "mypub" publication (without pub
parameter). When referencing pages of other publications (see sample code
above) Lenya says "LinkException: The target doesn't exist!".

Here's an excerpt of the stack trace:
at
org.apache.avalon.excalibur.component.ComponentProxyGenerator$ComponentInvocationHandler.invoke(ComponentProxyGenerator.java:143)
    at $Proxy11.resolveURI(Unknown Source)
    at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
    at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
    at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
    at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
    at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:554)
    at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:541)
    at
org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.resolveURI(MutableEnvironmentFacade.java:299)
    at
org.apache.cocoon.transformation.CIncludeTransformer.processCIncludeElement(CIncludeTransformer.java:522)
    ... 149 more
Caused by: java.lang.RuntimeException:
org.apache.lenya.cms.linking.LinkException: The target doesn't exist!
    at
org.apache.lenya.cms.cocoon.source.DocumentSourceFactory.getSource(DocumentSourceFactory.java:165)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lenya.apache.org
For additional commands, e-mail: dev-h...@lenya.apache.org

Reply via email to