The StringToDOMPropertyDescriptor
used by Quincy Funds is an implementation of class atg.xml.StringToDOMPropertyDescriptor
, which extends atg.repository.RepositoryPropertyDescriptor
. This property descriptor takes another of the item descriptor’s properties (of type String) as an attribute. It then transforms and caches the content of the other property as an org.w3c.Document
.
The following example definition is from the repository definition file DSSJ2EEDemo/config/atg/demo/QuincyFunds/repositories/Funds/funds.xml
:
<property name="document" property-type = "atg.xml.StringToDOMPropertyDescriptor"> <attribute name="documentSourcePropertyName" value="fundContent"/> <attribute name="contentTimeStampPropertyName" value="lastModified"/> </property>
where fundContent
is defined as follows:
<table name="dss_qf_fund_cont" type="auxiliary" id-column-name="id">
<property name="fundContent" column-name="file_content" …
data-type="string" queryable="false"/>
</table>
The Quincy Funds demo contains an example of a reference to this property in an XMLTransform
servlet bean. The example is located in the following JSP:
DSSJ2EEDemo/j2ee-apps/QuincyFunds/web-app/repositories/en/fund.jsp
<dsp:droplet name="/atg/dynamo/droplet/xml/XMLTransform"> <dsp:param name="input" param="element.document"/> <dsp:param name="template" value="funds-investor-template.xsl"/> <dsp:oparam name="failure"> <p> Failure to transform XML document: <dsp:valueof param="input"/> </dsp:oparam> </dsp:droplet>
For more information on this property descriptor class, please refer to the ATG API Reference.