Binds theme and layout policies to a response that contains styled content.
Attribute | Description | Type | Default | Options | Use |
---|---|---|---|---|---|
rel | Defines the relationship to the target. The qualified-name values 'mcs:layout' and 'mcs:theme' can be used in the rel attribute to bind layout and theme policies to an AJAX response. They belong to the namespace http://www.volantis.com/xmlns/2006/01/xdime/mcs, which must be declared. | xs:QName | none | mcs:layout, mcs:theme | optional |
Styles for the refreshed list items are specified in the main.mthm theme policy.
<?xml version="1.0" encoding="UTF-8"?>
<response:response xmlns="http://www.w3.org/2002/06/xhtml2"
xmlns:mcs="http://www.volantis.com/xmlns/2006/01/xdime/mcs"
xmlns:response="http://www.volantis.com/xmlns/2006/05/widget/response">
<response:head>
<response:link rel="mcs:theme" href="/main.mthm"/>
</response:head>
<response:body>
<response:carousel id="myWeatherCarousel">
<li><a href="http://www.budapest.hu">Budapest</a>: 22°C, rain and wind</li>
<li><a href="http://www.prague-city.cz">Prague</a>: 8°C, rain</li>
</response:carousel>
</response:body>
</response:response>