cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with including from subspaces of WebForm

shchavla
Champ in-the-making
Champ in-the-making
Hello Skilled Smiley Happy
   
I've tried to include another xslt from subspace of webform
<xsl:include href="xsl/included.xsl"/>

and, got the following error

org.alfresco.web.forms.RenderingEngine$RenderingException: errors encountered du
ring transformation:
Can u tell me the way how to handle this problem?
it is not so handy to keep all of included xslt in same space.
Any ideas will be appreciated.
Error:

15:38:47,343 ERROR [ui.common.Utils] Error generating rendition using including.
xsl: errors encountered during transformation:
unable to resolve href xsl/included.xsl

org.alfresco.web.forms.RenderingEngine$RenderingException: errors encountered du
ring transformation:
unable to resolve href xsl/included.xsl

        at org.alfresco.web.forms.XSLTRenderingEngine.render(XSLTRenderingEngine
.java:510)
        at org.alfresco.web.forms.XSLTRenderingEngine.render(XSLTRenderingEngine
.java:379)
        at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEn
gineTemplateImpl.java:306)
        at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEn
gineTemplateImpl.java:279)
        at org.alfresco.web.bean.wcm.CreateWebContentWizard.saveContent(CreateWe
bContentWizard.java:473)
        at org.alfresco.web.bean.wcm.CreateWebContentWizard.next(CreateWebConten
tWizard.java:229)
        at org.alfresco.web.bean.wizard.WizardManager.next(WizardManager.java:49
😎
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java
:132)
        at org.apache.myfaces.application.ActionListenerImpl.processAction(Actio
nListenerImpl.java:61)
        at javax.faces.component.UICommand.broadcast(UICommand.java:109)
        at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:9
7)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1
71)
        at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(Invoke
ApplicationExecutor.java:32)
        at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl
.java:95)
        at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
:70)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(Authentica
tionFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:870)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:685)
        at java.lang.Thread.run(Thread.java:595)
:?:
1 REPLY 1

janv
Employee
Employee
Please refer to:

http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Included_templates

If you wish to include an XSL from the dictionary then it needs to reside in the form's space itself (not a subspace). You could then include as:


<xsl:include href="included.xsl"/>

The alternative is to specify a path within the virtualized webapp. In your case, you could put your included XSL in a folder called "xsl" in your web project. This can then be referenced as:


<xsl:include href="xsl/included.xsl"/>

The include will be resolved (with or without a leading forward slash) as long as the virtualization server is running when creating/editing an instance of the form content.

Thanks,
Jan
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.