- got extension functions working from freemarker with namespaces. there's still the caveat that you need to use the ftl tag to include the alfresco namespace if you're using extension functions and want the file name from getXMLDocuments, but other than that it's pretty much exactly what i wanted and mimics the xsl environment perfectly.

- beginning slowly to move to new and hopefully finalized terminology.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4171 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-10-20 00:56:09 +00:00
parent 11e6bdeda1
commit e808801107
10 changed files with 293 additions and 97 deletions

View File

@@ -40,8 +40,10 @@ import org.w3c.dom.Document;
/**
* temporary home of generate and regenerate functionality until i figure
* out a more general way of triggering generate in TemplateOutputMethod
* out a more general way of triggering generate in FormDataRenderer
* every time the xml file is saved.
*
* @author Ariel Backenroth
*/
public class OutputUtil
{
@@ -63,7 +65,7 @@ public class OutputUtil
{
try
{
for (TemplateOutputMethod tom : tt.getOutputMethods())
for (FormDataRenderer tom : tt.getFormDataRenderers())
{
// get the node ref of the node that will contain the content
final String generatedFileName = stripExtension(fileName) + "." + tom.getFileExtension();
@@ -132,7 +134,7 @@ public class OutputUtil
final String avmStore = avmPath.substring(0, avmPath.indexOf(":/"));
final String sandBoxUrl = AVMConstants.buildAVMStoreUrl(avmStore);
final String parentPath = AVMNodeConverter.SplitBase(avmPath)[0];
for (TemplateOutputMethod tom : tt.getOutputMethods())
for (FormDataRenderer tom : tt.getFormDataRenderers())
{
final String generatedFileName = stripExtension(fileName) + "." + tom.getFileExtension();