Binding configuration
Binding
Syntax
<Binding>
<SectionModelBinding ... >
...
</SectionModelBinding>
</Binding>
Child sections
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 |
section |
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. |
|
|
modelXPath |
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 |
name |
The name of the placeholder. |
|
|
modelXPath |
The XPath expression which can be applied on the current element to get the element for the placeholder. |
|
|