I can't include tags at runtime!!!
Erik Mautsch <[email protected]>
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
Hello Eric,
>I did not work with the "include" attribute yet. First, you must not use
>the id "but" more than once.
okay, then i'll try this:
file_1.xml
#########
<panel id="test" include="file_2.xml#but">
<!--buttons after rendering the xml file -->
</panel>
#########
file_2.xml
#######
<dummy_tag>
<button icon... action.../>
<button icon... action../>
<button icon... action.../>
</dummy_tag>
>This is IMHO generally a bad idea -- how to
>you want to fetch a specific button programatically if the id is not unique?
I manipulate the file_2.xml File with JDOM. After parsing the Mail File, I
change, add some Content, Attributes in file_2.xml.
>Also, as far as I understand the docu, the content of the tag specified
>by id "but" is inserted at the place where you put your "include=..."
>attribute. So, in your sample code, <panel id="test" id="but" icon...
I've understood. that the content, in fact my buttons, will be in the existing
tag, where I've made the include.
>action...> would result. Did you get any error message complaining about
>something?
None Errormessage.
>Usually, swixml does throw exceptions which you *must not* ignore.
>If this does'nt help you, include the complete files you are refering to
>or at least the smallest possible files showing the same behaviour.
I'll try it.
>Frank
Regards
Erik