As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pr="http://www.someco.com/corp/pr" xmlns:alf="http://www.alfresco.org" targetNamespace="http://www.someco.com/corp/pr" elementFormDefault="qualified"> <!– defines the form for creating a press release –> <xs:element name="press_release"> <xs:complexType> <xs:sequence> <xs:element name="title" type="xs:normalizedString"/> <xs:element name="Image" type="xs:anyURI" minOccurs="0" maxOccurs="1"/> <xs:element name="location" type="xs:normalizedString" default="Austin, TX"/> <xs:element name="date" type="xs:date"/> <xs:element name="body" type="xs:normalizedString" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:appinfo> <alf:appearance>custom</alf:appearance> </xs:appinfo> </xs:annotation> </xs:element> <xs:element name="company_footer" type="xs:normalizedString" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="contact_info" type="xs:normalizedString" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
<#ftl ns_prefixes={"pr":"http://www.someco.com/corp/pr"}> <#assign press_release = .vars["pr:press_release"]> <div class="node"> <h2>${press_release["pr:Image"]}</h2> <p><p>${press_release["pr:location"]} - ${press_release["pr:date"]} - ${press_release["pr:body"]} <#list press_release["pr:company_footer"] as cf> <p>${cf}</p> </#list> <#list press_release["pr:contact_info"] as ci> <p>${ci}</p> </#list> </p></p> <div class="clearfix"></div> </div> <div class="clearfix"></div>