[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [uiml-comment] The template parameterization brings a conflictbetween ids
Hi Takashi, Op dinsdag 27-11-2007 om 16:37 uur [tijdzone +0900], schreef takashi.endou.zs@kyocera.jp: > I would like to point out one more thing concerning > uiml-core-4.0-draft_RS021007.doc. thanks for your feedback! > In 8.3 Template Parameterization Listing 9 shows like the following. > <structure> > <part id="id1" source="#tpl" how="replace"> > <template−parameters> > <template−param id="button_id">btn_copy</template−param> > <template−param id="button_label">Click to copy</template−param> > <template−param id=”entry_id">entry_copy</template−param> > -----------------------~ (a different character) > </template−parameters> > </part> > </structure> > > Template is a reusable interface component. But if multiple parts > (place holders) source the same template, ids will conflict. ID resolution should be handled of course, we will have a look how best to resolve this. Regards, Kris > > For example. > > <structure> > <part id="id1" source="#tpl" how="replace"> > <template−parameters> > <template−param id="button_id">btn_copy</template−param> > <template−param id="button_label">Click to copy</template−param> > <template−param id=”entry_id">entry_copy</template−param> > </template−parameters> > </part> > <part id="id2" source="#tpl" how="replace"> > <template−parameters> > <template−param id="button_id">btn_copy_2</template−param> > <template−param id="button_label">Click to copy 2</template−param> > <template−param id=”entry_id">entry_copy_2</template−param> > </template−parameters> > </part> > </structure> > > In 6.2.1 The id and class Attributes it is stated that no two elements > can have the same id within the same UIML document. > > I'm afraid that a similar conflict occurs in "restructure" case. > <restructure at-part="id1" source="#tpl" how="replace"> > <template−parameters> > <template−param id="button_id">btn_copy_2</template−param> > <template−param id="button_label">Click to copy 2</template−param> > <template−param id=”entry_id">entry_copy_2</template−param> > </template−parameters> > </restructure> > > > > Best Regards, > Takashi -- Kris Luyten Assistant Professor Expertisecentrum voor Digitale Media - Hasselt University Wetenschapspark 2, 3590 Diepenbeek, Belgium tel.: +32 (0)11 268411 email: kris.luyten@uhasselt.be web: http://research.edm.uhasselt.be/kris
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]