Re: re-use of xml
List for Users of Carlsbad Cubes' Technologies and Products <[email protected]> Sat, 22 Oct 2005 10:18:02 -0700
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
--===============0621119876== Content-Type: multipart/alternative; boundary=Apple-Mail-3--777056901 --Apple-Mail-3--777056901 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Emil, Take a look at example 10 on the sample page here: http://www.swixml.org/samples/ With the include attribute, you can either include a whole xml document or just a sub-hierarchy using an xpointer like notation <panel id="pnl_footer" constraints="BorderLayout.SOUTH" include="xml/fragments.xml#PNL_OK_CANCEL"/> This panel tag for instance would include the content of a tag with the id 'PNL_OK_CANCEL' to be found in the 'fragments.xml' document. --wolf On Oct 22, 2005, at 4:48 AM, List for Users of Carlsbad Cubes' Technologies and Products wrote: > Hi, > > I am wondering how an xml file(a panel with standard > buttons like "OK", "Cancel", and "Apply") can be > reused; in a bigger application there are some button > panels/parts that repeat constantly. > > So, my question is: > > Instead of coding the same button panels in every xml > file they occur, could we write this repeating stuff > in a separate xml file and then insert it in all the > other xml that needs the given button panels with > statements like "#import myButtonPanel.xml"? Does it > conflict with the id map if we have many xml files > referring to our button panel? > > Thanks in advance, > > Emil > > > > __________________________________ > Yahoo! FareChase: Search multiple travel sites in one click. > http://farechase.yahoo.com > > _______________________________________________ > Forum mailing list > [email protected] > http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com > -- Wolf Paulus 707.202.3937 [email protected] C a r l s b a d C u b e s Dedicated to Excellence CONFIDENTIALITY NOTICE: This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. --Apple-Mail-3--777056901 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 <HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; = -khtml-line-break: after-white-space; ">Emil,<DIV>Take a look at example = 10 on the sample page here:</DIV><DIV><A = href=3D"http://www.swixml.org/samples/">http://www.swixml.org/samples/</A>= </DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>With the include attribute, = you can either include a whole xml document or just a = sub-hierarchy=A0using an xpointer like notation</DIV><DIV>=A0<panel = id=3D"pnl_footer" constraints=3D"BorderLayout.SOUTH" = include=3D"xml/fragments.xml#PNL_OK_CANCEL"/></DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>This panel tag for instance = would include the content of a tag with the id 'PNL_OK_CANCEL' to be = found in the 'fragments.xml' document.</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>--wolf</DIV><DIV><BR><DIV><DI= V>On Oct 22, 2005, at 4:48 AM, List for Users of Carlsbad Cubes' = Technologies and Products wrote:</DIV><BR = class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">Hi,</DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: = 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">I am wondering how an xml file(a = panel with standard</DIV><DIV style=3D"margin-top: 0px; margin-right: = 0px; margin-bottom: 0px; margin-left: 0px; ">buttons like "OK", = "Cancel", and "Apply") can be</DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">reused; in a = bigger application there are some button</DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; = ">panels/parts that repeat constantly.</DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; = min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">So, my = question is:</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">Instead of coding the same button panels in every = xml</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">file they occur, could we write = this repeating stuff</DIV><DIV style=3D"margin-top: 0px; margin-right: = 0px; margin-bottom: 0px; margin-left: 0px; ">in a separate xml file and = then insert it in all the</DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">other xml = that needs the given button panels with</DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; = ">statements like "#import myButtonPanel.xml"? Does it</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">conflict with the id map if we have many xml = files</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">referring to our button panel? = <SPAN class=3D"Apple-converted-space">=A0</SPAN></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Thanks = in advance,</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">Emil</DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: = 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; min-height: 14px; "><SPAN = class=3D"Apple-converted-space"><SPAN class=3D"Apple-converted-tab">=A0=A0= =A0 =A0 =A0</SPAN></SPAN><BR class=3D"khtml-block-placeholder"></DIV><DIV= style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">__________________________________<SPAN = class=3D"Apple-converted-space">=A0</SPAN></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Yahoo! = FareChase: Search multiple travel sites in one click.</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; "><A = href=3D"http://farechase.yahoo.com">http://farechase.yahoo.com</A></DIV><D= IV style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; = ">_______________________________________________</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">Forum mailing list</DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A = href=3D"mailto:[email protected]">[email protected]</A></DIV><= DIV style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; "><A = href=3D"http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com"= >http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com</A></DI= V> <BR = class=3D"Apple-interchange-newline"></BLOCKQUOTE></DIV><BR><DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 10px/normal Helvetica; = "><FONT class=3D"Apple-style-span" color=3D"#808080">--</FONT></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 10px/normal Helvetica; = "><B>Wolf Paulus</B></DIV><DIV style=3D"margin-top: 0px; margin-right: = 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal = 10px/normal Helvetica; "><FONT class=3D"Apple-style-span" = color=3D"#808080">707.202.3937</FONT></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: = normal normal normal 10px/normal Helvetica; "><A = href=3D"mailto:[email protected]">[email protected]</A></DIV><DI= V style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 10px/normal Helvetica; = min-height: 12px; "><BR style=3D""></DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal = normal normal 12px/normal Arial; "><FONT class=3D"Apple-style-span" = color=3D"#666699"><B>C a r l s b a d=A0 C u b e s</B></FONT></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 10px/normal Helvetica; = "><B>Dedicated to Excellence</B><SPAN style=3D"font: 12.0px = Helvetica">=A0</SPAN></DIV><DIV style=3D"margin-top: 0px; margin-right: = 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal = 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 10px/normal Helvetica; = "><FONT class=3D"Apple-style-span" color=3D"#808080">CONFIDENTIALITY = NOTICE:</FONT></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; font: normal normal normal = 10px/normal Helvetica; "><FONT class=3D"Apple-style-span" = color=3D"#808080">This message is intended only for the use of the = individual or entity to which it is addressed, and may contain = information that is privileged, confidential and exempt from disclosure = under applicable law. If you are not the intended recipient, please = contact the sender by reply email and destroy all copies of the original = message.</FONT></DIV> </DIV><BR></DIV></BODY></HTML>= --Apple-Mail-3--777056901-- --===============0621119876== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Forum mailing list [email protected] http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com --===============0621119876==--