The following code marks the value "true" as a JavaScript keyword that can't be used, when it's just an output string
<#if content.type == '{
http://www.researchint.com/model/content/1.0}event'>
<event>
<@common />
<@checkout />
<@location childName="ri:eventLocation" wrapperName="eventLocation" />
<eventMaterials><![CDATA[${content.childAssocs["ri:eventMaterials"][0].content}]]></eventMaterials>
<introText><![CDATA[${content.childAssocs["ri:introduction"][0].content}]]></introText>
<onlineRegistration><#if content.properties["ri:registerOnline"]!false>true<#else>false</#if></onlineRegistration>
<registrationEmailAutoResponse><![CDATA[${content.childAssocs["ri:emailResponse"][0].content}]]></registrationEmailAutoResponse>
<startDate>${content.properties["ri:eventStartDate"]?datetime}</startDate>
<registrationCutoffDate><#if content.properties["ri:registrationCutoffDate"]??>${content.properties["ri:registrationCutoffDate"]?datetime}</#if></registrationCutoffDate>
<@contact childName="ri:eventContact"/>
<photoGalleryIntroText><![CDATA[${content.properties["ri:photoGalleryIntroText"]!}]]></photoGalleryIntroText>
<#if content.properties["ri:photoGalleryURL"]??>
<#list content.properties["ri:photoGalleryURL"] as url>
<photoGalleryURLs>${url}</photoGalleryURLs>
</#list>
</#if>
<@resourceBundleArea node=content />
<source><#if content.properties["cm:source"]??>${content.properties["cm:source"].properties["sys:node-uuid"]!}</#if></source>
</event>
</#if>
Environment: OS X 10.5.5
Issue was resolved
I'm sorry I don't understand the question? This is a .ftl (Freemarker file)... here is the complete file in case that helps answer the question. If not, please let me know what settings I should be looking at or what I'm overlooking. Thanks!
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<#macro checkout>
<isExpired>false</isExpired>
<isActive>false</isActive>
<isCurrent>true</isCurrent>
<lockOwner>${content.properties["ri:lockOwner"]!}</lockOwner>
<versionLabelName>${content.properties["ri:versionLabel"]!}</versionLabelName>
<versionNumber>${content.properties["ri:versionNumber"]!}</versionNumber>
<canEdit><#if content.hasPermission("Write")>true<#else>false</#if></canEdit>
<canExpire><#if content.hasPermission("Delete")>true<#else>false</#if></canExpire>
</#macro>
<#macro common>
<fileName>${content.properties["cm:name"]!}</fileName>
<#if content.properties["ri:dateAuthored"]??>
<dateAuthored>${content.properties["ri:dateAuthored"]?datetime}</dateAuthored>
</#if>
<locale>${content.properties["ri:locale"]!}</locale>
<nativeLanguageTitle><#escape x as x?html>${content.properties["cm:title"]!}</#escape></nativeLanguageTitle>
<englishLanguageTitle><#escape x as x?html>${content.properties["ri:englishTitle"]!}</#escape></englishLanguageTitle>
<uuid>${content.properties["sys:node-uuid"]!}</uuid>
<type>${content.properties["ri:type"]!}</type>
<workflowTaskOwner>${workflowOwner!}</workflowTaskOwner>
<workflowTask>${workflowTask!}</workflowTask>
<isPublished>${isPublished!}</isPublished>
<createdByUser>${content.properties["cm:creator"]!}</createdByUser>
<urls>
<#list content.properties["ri:url"] as url>
<url>${url}</url>
</#list>
</urls>
<template>${content.properties["ri:template"]}</template>
<parentFolderUUID>${content.parent.properties["sys:node-uuid"]!}</parentFolderUUID>
</#macro>
<#macro contact childName>
<contact>
<email>${content.childAssocs["${childName}"][0].properties["ri:email"]!}</email>
<fullName>${content.childAssocs["${childName}"][0].properties["ri:fullName"]!}</fullName>
<title><#escape x as x?html>${content.childAssocs["${childName}"][0].properties["ri:personTitle"]!}</#escape></title>
<isDisplayed><#if content.childAssocs["${childName}"][0].properties["ri:isDisplayed"]!false>true<#else>false</#if></isDisplayed>
<phone>${content.childAssocs["${childName}"][0].properties["ri:phone"]!}</phone>
</contact>
</#macro>
<#macro categories>
<#if content.properties["cm:categories"]??>
<#list content.properties["cm:categories"] as category>
<#if category.parent.name == "Offers">
<offers>
<name><#escape x as x?html>${category.name}</#escape></name>
<qname><#escape x as x?html>${category.qnamePath}</#escape></qname>
<uuid><#escape x as x?html>${category.properties["sys:node-uuid"]}</#escape></uuid>
</offers>
</#if>
<#if category.parent.name == "Products">
<products desc="${category.properties["cm:description"]!}">
<name><#escape x as x?html>${category.name}</#escape></name>
<qname><#escape x as x?html>${category.qnamePath}</#escape></qname>
<uuid><#escape x as x?html>${category.properties["sys:node-uuid"]}</#escape></uuid>
</products>
</#if>
<#if category.parent.name == "Microsite Categories">
<micrositeCategory>
<name><#escape x as x?html>${category.name}</#escape></name>
<qname><#escape x as x?html>${category.qnamePath}</#escape></qname>
<uuid><#escape x as x?html>${category.properties["sys:node-uuid"]}</#escape></uuid>
</micrositeCategory>
</#if>
</#list>
</#if>
</#macro>
<#macro resourceBundleArea node>
<#if node.properties["cm:categories"]??>
<#list node.properties["cm:categories"] as category>
<#if category.parent.name == "Resource Bundle Areas">
<resourceBundleArea desc="${category.properties["cm:description"]!}">
<name><#escape x as x?html>${category.name}</#escape></name>
<qname><#escape x as x?html>${category.qnamePath}</#escape></qname>
<uuid><#escape x as x?html>${category.properties["sys:node-uuid"]}</#escape></uuid>
</resourceBundleArea>
</#if>
</#list>
</#if>
</#macro>
<#macro location childName wrapperName>
<${wrapperName}>
<address><![CDATA[${content.childAssocs["${childName}"][0].properties["ri:address"]!}]]></address>
<city>${content.childAssocs["${childName}"][0].properties["ri:city"]!}</city>
<country>${content.childAssocs["${childName}"][0].properties["ri:country"]!}</country>
<location><![CDATA[${content.childAssocs["${childName}"][0].properties["ri:locationName"]!}]]></location>
<#if content.childAssocs["${childName}"][0].properties["ri:regionId"]??>
<region>
<name><#escape x as x?html>${content.childAssocs["${childName}"][0].properties["ri:regionId"].name}</#escape></name>
<qname><#escape x as x?html>${content.childAssocs["${childName}"][0].properties["ri:regionId"].qnamePath}</#escape></qname>
<uuid>${content.childAssocs["${childName}"][0].properties["ri:regionId"].properties["sys:node-uuid"]!}</uuid>
</region>
</#if>
</${wrapperName}>
</#macro>
<#if content.type == '{http://www.researchint.com/model/content/1.0}webpage'>
<webpage>
</#if>
<#if content.type == '{http://www.researchint.com/model/content/1.0}micrositePage'>
<micrositePage>
<micrositeTitle><#escape x as x?html>${content.properties["ri:micrositeTitle"]}</#escape></micrositeTitle>
<leftSideImageURL><#escape x as x?html>${content.properties["ri:micrositeImageURL"]!}</#escape></leftSideImageURL>
<leftSideFLVFileName><#escape x as x?html>${content.properties["ri:micrositeVideoURL"]!}</#escape></leftSideFLVFileName>
<micrositeName><#escape x as x?html>${content.parent.parent.name!}</#escape></micrositeName>
</#if>
<#if content.type == '{http://www.researchint.com/model/content/1.0}webpage' || content.type == '{http://www.researchint.com/model/content/1.0}micrositePage'>
<@common />
<@checkout />
<@categories />
<@resourceBundleArea node=content.parent />
<columns>
<#list columns as column>
<column>
<blocks>
<#list column as block>
<block>
<blockContent><![CDATA[${block}]]></blockContent>
</block>
</#list>
</blocks>
</column>
</#list>
</columns>
</#if>
<#if content.type == '{http://www.researchint.com/model/content/1.0}webpage'>
</webpage>
</#if>
<#if content.type == '{http://www.researchint.com/model/content/1.0}micrositePage'>
</micrositePage>
</#if>
<#if content.type == '{http://www.researchint.com/model/content/1.0}learning'>
<learning>
<type>${content.properties["ri:learningType"]!}</type>
<@common />
<@checkout />
<@resourceBundleArea node=content />
<attachedDocumentURL>${content.properties["ri:attachedDocumentURL"]!}</attachedDocumentURL>
<attachedDocumentCaption>${content.properties["ri:attachedDocumentURL"]!}</attachedDocumentCaption>
<image>
<caption><#escape x as x?html>${content.properties["ri:learningImageCaption"]}</#escape></caption>
<url><#escape x as x?html>${content.properties["ri:learningImageURL"]!}</#escape></url>
</image>
<introText><![CDATA[${content.childAssocs["ri:introText"][0].content}]]></introText>
<@location childName="ri:learningRegion" wrapperName="relatedLocation" />
<@contact childName="ri:learningAuthor" />
<@categories />
</learning>
</#if>
<#if content.type == '{http://www.researchint.com/model/content/1.0}caseStudy'>
<caseStudy>
<@common />
<@checkout />
<image>
<caption><#escape x as x?html>${content.properties["ri:caseStudyImageCaption"]!}</#escape></caption>
<url><#escape x as x?html>${content.properties["ri:caseStudyImageURL"]!}</#escape></url>
</image>
<@location childName="ri:relatedLocation" wrapperName="relatedLocation" />
<background><![CDATA[${content.childAssocs["ri:background"][0].content}]]></background>
<businessIssue><![CDATA[${content.childAssocs["ri:businessIssue"][0].content}]]></businessIssue>
<businessValue><![CDATA[${content.childAssocs["ri:businessValue"][0].content}]]></businessValue>
<client><#escape x as x?html>${content.properties["ri:clientName"]!}</#escape></client>
<@contact childName="ri:caseStudyContact" />
<@categories />
<@resourceBundleArea node=content />
<solution><![CDATA[${content.childAssocs["ri:solution"][0].content}]]></solution>
</caseStudy>
</#if>
<#if content.type == '{http://www.researchint.com/model/content/1.0}jobPosting'>
<jobPosting>
<@common />
<@checkout />
<@contact childName="ri:jobContact" />
<@categories />
<@resourceBundleArea node=content />
<jobFunction>
<name><#escape x as x?html>${content.properties["ri:jobFunction"].name}</#escape></name>
<qname><#escape x as x?html>${content.properties["ri:jobFunction"].qnamePath}</#escape></qname>
<uuid><#escape x as x?html>${content.properties["ri:jobFunction"].properties["sys:node-uuid"]}</#escape></uuid>
</jobFunction>
<#list content.properties["ri:relatedOfficeId"] as officeId>
<office><id>${officeId}</id></office>
</#list>
<responsibilities><![CDATA[${content.childAssocs["ri:keyResponsibilities"][0].content}]]></responsibilities>
<skills><![CDATA[${content.childAssocs["ri:skillsAndExperience"][0].content}]]></skills>
</jobPosting>
</#if>
<#if content.type == '{http://www.researchint.com/model/content/1.0}newsItem'>
<newsItem>
<newsContent><![CDATA[${content.childAssocs["ri:newsContent"][0].content}]]></newsContent>
<image>
<caption><#escape x as x?html>${content.properties["ri:featuredImageCaption"]!}</#escape></caption>
<url><#escape x as x?html>${content.properties["ri:featuredImageURL"]!}</#escape></url>
</image>
<@common />
<@checkout />
<date>${content.properties["ri:newsDate"]?datetime}</date>
<@location childName="ri:newsLocation" wrapperName="location" />
<@contact childName="ri:mediaContact"/>
<@resourceBundleArea node=content/>
</newsItem>
</#if>
<#if content.type == '{http://www.researchint.com/model/content/1.0}event'>
<event>
<@common />
<@checkout />
<@location childName="ri:eventLocation" wrapperName="eventLocation" />
<eventMaterials><![CDATA[${content.childAssocs["ri:eventMaterials"][0].content}]]></eventMaterials>
<introText><![CDATA[${content.childAssocs["ri:introduction"][0].content}]]></introText>
<onlineRegistration><#if content.properties["ri:registerOnline"]!false>true<#else>false</#if></onlineRegistration>
<registrationEmailAutoResponse><![CDATA[${content.childAssocs["ri:emailResponse"][0].content}]]></registrationEmailAutoResponse>
<startDate>${content.properties["ri:eventStartDate"]?datetime}</startDate>
<registrationCutoffDate><#if content.properties["ri:registrationCutoffDate"]??>${content.properties["ri:registrationCutoffDate"]?datetime}</#if></registrationCutoffDate>
<@contact childName="ri:eventContact"/>
<photoGalleryIntroText><![CDATA[${content.properties["ri:photoGalleryIntroText"]!}]]></photoGalleryIntroText>
<#if content.properties["ri:photoGalleryURL"]??>
<#list content.properties["ri:photoGalleryURL"] as url>
<photoGalleryURLs>${url}</photoGalleryURLs>
</#list>
</#if>
<@resourceBundleArea node=content />
<source><#if content.properties["cm:source"]??>${content.properties["cm:source"].properties["sys:node-uuid"]!}</#if></source>
</event>
</#if>
Is there any way for me to make .ftl files use the XML template by default?