[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Plural attribute values versus a separate element.
I'm trying to decide on an XML data representation approach to the following problem. I have a element which may be plural. Every instance of that element share a common "type" attribute, but the "type" values can be plural. Well formed XML requires attributes to be unique for a specific element instance. My XML/XSL experience is limited, but it seems to me that it is not easy/natural to deal with attribute values which are plural. Therefore, I suspect that I should turn this attribute into a peer element. Does anyone have insight into this problem? Approach A: ---------- <element type="A,B">....</element> <element type="A,B">....</element> Approach B: ----------- <element_type>A</element_type> <element_type>B</element_type> <element>....</element> <element>....</element> Regards, Ed Knoll -- Edward L. Knoll Phone (work) : (719)484-2717 e-mail (work) : ed.knoll@xxxxxxxxxxxxxx e-mail (business): eknoll@xxxxxxxxxx e-mail (personal): edward@xxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|