Olá,
detectei um erro no exemplo do tutorial NCL 2.0ed.
<switch id="switchNivel">
<switchPort id="pNivel">
<mapping component="ctxBasico" interface="pBasico" />
<mapping component="ctxAvancado" interface="pAvancado" />
</switchPort>
<bindRule rule="rBasico" component="ctxBasico" />
<bindRule rule="rAvancado" component="ctxAvancado" />
<context id="ctxBasico">
<port id="pBasico" component="videoBasico" />
88 comentários
<bindRule rule="regra1" constituent="midia1" />
<bindRule rule="regra2" constituent="midia2" interface="A" />
<bindRule rule="regra3" constituent="midia2" interface="B" /> <media id="midia1" .../>
<media id="midia2" ...>
<area id="A"/>
<area id="B"/>
</media>
</switch>