I have the last file in My sandbox, Staging Sandbox and web scripts. I don't know if I can include it from web scripts in the dictionary data, but I read if it's in Staging Sandbox, I just need to include this: <xs:include schemaLocation="webscript://types.xsd"/>. However, I got this mistake:
org.alfresco.web.forms.FormProcessor$ProcessingException: org.alfresco.web.forms.xforms.FormBuilderException: error parsing schema: at line 22 column 55: src-resolve: Cannot resolve the name 'shortStr' to a(n) 'type definition' component.
Please, can someone help me out?? It's very important for me.
Thanks for you answer, but I'm trying different ways.
I want to build my webforms with different fragments, so I want to include different xslts and htmls files in one webform. I already got to include types.xsd from the external file. However, my problem is different right know. I come straight to the point:
I've tried to include the files with <xsl:include href="", but I haven't got anything:
1. I tried from a external file as: <xsl:include href="www.mysite.com/components/header.xslt". I tried to include the same way a schema file in schema file, as <xs:include schemaLocation="www.mysite.com/types/types.xsd". It worked 2. I tried from my sandbox and staging sandbox as: <xsl:include href="/ROOT/components/header.xslt". 3. I tried from my sandbox and staging sandbox as: <xsl:include href="/components/header.xslt". 4. I tried to include the file in the same webform, add content, as: <xsl:include href="header.xslt".
xsl:include is working fine on Alfresco 3.1 and 3.1 SP1. I have tested it.
However there is problem in Alfresco 3.0 Sp1. So thats reason I asked for which version of Alfresco you are using. I have already opened ticket with support for 3.0 and its almost 3 weeks no updates on that ticket.
Just also ensure you have added following entry in web-scripts-application-context.xml, if you are working on 3.1 <prop key="xslt">text/xml</prop>
e.g. we are using following to include global xslt definitions in the xslt that we associate to web form.
/common_templates/ - is the directory under ROOT of your web project. You can also include xsl in your web form directory under your Alfresco data dictionary as follows <xsl:include href="CRCnetBASE_common_templates_ser.xsl" />
And third way is through web script which i guess you are trying. All of these works on 3.1
Thanks so much for your help. I appreciate it a lot in this forum because the forum is not used much. I tried to achieve the project through different such as, to use freemarker and surf platform. However, my boss changed his mind and we started doing the project with liferay. Even though the wiki at alfresco is great, the community doesn't help a lot. That's the problem with alfresco.