@pp.dropOutputFile /> <#list prodXml.products.product as p> <@pp.changeOutputFile name="product_${p.@id}.html" /> <#escape x as x?html>
Price: $${p.price}
Description:
${p.description}
Manufacturer:
Name: ${p.manufacturer}
<#assign m = manuXml.manufacturers['manufacturer[name="${p.manufacturer}"]']>
<#if m?has_content>
<#if m.address?has_content>
Address: ${m.address}#if>
<#if m.phone?has_content>
Phone: ${m.phone}#if>
<#if m.homepage?has_content>
Homepage: ${m.homepage}#if>
<#if m.email?has_content>
Email: ${m.email}#if>
<#else>
<@pp.warning message="Referenced manufacturer not found: ${p.manufacturer}" />
#if>