cancel
Showing results for 
Search instead for 
Did you mean: 

Web form creating rendition with .xml.html extension on seco

aadhikari
Champ on-the-rise
Champ on-the-rise
I am using Alfresco Enterprise 3.2 (tomcat bundle) on Ubuntu, using mysql.
I used an xsd and an ftl file to create a webform.
The output path pattern for the xsd is: /${webapp}/${cwd}/${name}.xml
The output path pattern for the ftl is:  /${webapp}/${cwd}/${name}.${extension}
There is no default workflow selected.
I added the webform to a web project. Output patterns were kept as the default (shown above). Now, when I create new web content using this webform, it creates a rendition with the extension .html, as expected. But when I edit that file, I get another rendition, this time with the extension .xml.html. When I checked the Alfresco Node Reference for the xml file, I find that the name property has the value "filename".xml. In Alfresco Enterprise 2.1 that we were using earlier, the name property has value –null– or UNKNOWN.
Please advise on how to fix this issue.
2 REPLIES 2

aadhikari
Champ on-the-rise
Champ on-the-rise
for anyone else facing the same issue, here is the solution: replace ${name} in the output path pattern of the rendtion template with this: ${name?replace(".xml","")}.

jelena
Champ in-the-making
Champ in-the-making
Thanks a lot, this was helpful