[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: The template parameterization brings a conflict between ids
I would like to point out one more thing concerning uiml-core-4.0-draft_RS021007.doc. 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. 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 -- Takashi Endoh email: takashi.endou.zs@kyocera.jp
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]