[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Plural attribute values versus a separate element.

Subject: Plural attribute values versus a separate element.
From: "Edward L. Knoll" <ed.knoll@xxxxxxxxxxxxxx>
Date: Fri, 23 Aug 2002 09:35:04 -0600
stylus plural
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.