<#list root.children as child>
<#-- show properties of each child -->
<#assign props = child.properties?keys>
<#list props as t>
<#-- If the property exists -->
<#if child.properties[t]?exists>
<#-- If it is a date, format it accordingly-->
<#if child.properties[t]?is_date>
${t} = ${child.properties[t]?date} |
<#-- If it is a boolean, format it accordingly-->
<#elseif child.properties[t]?is_boolean>
${t} = ${child.properties[t]?string("yes", "no")} |
<#-- Otherwise treat it as a string -->
<#else>
${t} = ${child.properties[t]} |
#if>
#if>
#list>
#list>
<#-- Test XPath -->
<#list root.childrenByXPath["//*[@sys:store-protocol='workspace']"] as child>
${child.name}
#list>