Skip to content

Binding configuration

Binding

Syntax

<Binding>
  <SectionModelBinding ... >
    ...
  </SectionModelBinding>
</Binding>

Child sections

Section Description
SectionModelBinding See SectionModelBinding

SectionModelBinding

A SectionModelBinding defines how the model should be mapped to the template.

Syntax

<SectionModelBinding
  section="..."
  modelXPath="..."
  placeholderName="..."
>
  <Placeholders>
    <Placeholder ... />
   </Placeholders>
  <SectionModelBinding ... >
    ...
  </SectionModelBinding>
</SectionModelBinding>

Parameters

Parameter Description Default Remark
section1 The name of the section as defined in the template or in the config. For each section name there can only be one binding specified.
modelXPath1 The XPath expression which can be applied on the model to get to the XML element to bind to the section.
placeholderName The name of the placeholder of the current element. The same as section

Child sections

Section Description
Placeholder See Placeholder
SectionModelBinding A SectionModelBinding configuration in itself can contain a SectionModelBinding configuration. So it can be defined recursively.

Placeholder

Syntax

<Placeholder
  name="..."
  modelXPath="..."
/>

Parameters

Parameter Description Default Remark
name1 The name of the placeholder.
modelXPath1 The XPath expression which can be applied on the current element to get the element for the placeholder.

  1. required parameter