AnsweredAssumed Answered

Web Form Saving Location Dynamically

Question asked by suga_sugam on Nov 10, 2008
Latest reply on Feb 1, 2009 by ben
Hi ,

      I have created Web Form with Some text boxes and Path Option. While the Author Selects the Path Option that path option should be used as my destination to store my xml file. I have given below my Web Form and the Output Path which i formed during Web Form Creation Steps.

————————————————————————————————————
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:nav="http://www.alfresco.org/alfresco/navigation"
   targetNamespace="http://www.alfresco.org/alfresco/navigation"
   elementFormDefault="qualified">
   <xs:element name="navigation">
      <xs:complexType>
         <xs:sequence>
            <xs:element name="path" type="xs:anyURI" />
            <xs:element name="name" type="xs:normalizedString" />
            <xs:element name="description" type="xs:normalizedString"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
</xs:schema>

————————————————————————————————————



Output Path Pattern :  /${webapp}/pages/static/${xml.nav.navigation.path}.${name}.${extension}



Its throwing below error. Can anyone help to resolve the below error.


——————————————————————————————————————–

Please correct the errors below then click Finish.
Error generating rendition using navigation-sitemap.xsl: Error processing output path pattern <#ftl ns_prefixes={
"alf":"http://www.alfresco.org",
"chiba":"http://chiba.sourceforge.net/xforms",
"ev":"http://www.w3.org/2001/xml-events",
"nav":"http://www.alfresco.org/alfresco/navigation",
"xf":"http://www.w3.org/2002/xforms",
"xhtml":"http://www.w3.org/1999/xhtml",
"xs":"http://www.w3.org/2001/XMLSchema",
"xsi":"http://www.w3.org/2001/XMLSchema-instance"}>
/${webapp}/pages/static/${xml.nav.navigation.path}.${name}.${extension} for ASDFQ.xml in webapp ROOT:
Error during processing of the template 'Error on line 10, column 27 in string://fixed
Expecting a string, date or number here, Expression xml.nav.navigation.path is instead a freemarker.ext.dom.NodeListModel'. Please contact your system administrator.
————————————————————————————————————————-

Outcomes