07-12-2009 10:42 AM
07-12-2009 12:00 PM
07-12-2009 12:45 PM
<?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>
i try this but the path of the image only appear in the html file07-22-2009 07:04 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.