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.
<Article xmlns:alf="http://www.alfresco.org" xmlns:chiba="http://chiba.sourceforge.net/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:pr="http://www.alfresco.org/alfresco/pr" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <name> some name </name> <title> some title </title> <writer> Mister X </writer> <content> some content of the article </content> </Article>
<bean class="org.alfresco.module.org_alfresco_module_wcmquickstart.rendition.BootstrapRenditionDefinition"> <property name="name" value="xmlArticle"/> <property name="renderingEngineName" value="freemarkerRenderingEngine"/> <property name="parameters"> <map> <entry key="runAs" value="System"/> <entry key="template_path" value="/Company Home/Data Dictionary/Presentation Templates/xmlArticle.ftl"/> </map> </property> </bean>
V Inherit Rendition Config (this param is cheked) Rendition Config: ws:article=xmlArticle
ws:article=ws:xmlArticle
<name> some name </name> <title> some title </title> <Description> Some Description </Description> <content> the content of the article </content> </Article>
http://my.example.com/products/my-product.xml?view=raw
paramList.add(new ParameterDefinitionImpl(PARAM_MIME_TYPE, DataTypeDefinition.TEXT, false, getParamDisplayLabel(PARAM_MIME_TYPE)));
<entry key="mime-type" value="text/xml" />