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

Re: Multiple instances of an attribute Re: Towards XM

  • From: Stephen Green <stephengreenubl@gmail.com>
  • To: Olivier Rossel <olivier.rossel@gmail.com>
  • Date: Fri, 10 Dec 2010 10:17:17 +0000

Re:  Multiple instances of an attribute Re: Towards XM
I'm also thinking how the XML Namespaces spec used notation like xmlns:a=...
so I could imagine something like <price xml2ul:amount='["100 GBP',
'200 USD']'/>
for unordered lists where xml2ul is a WG-defined reserved prefix like xmlns
Likewise for sequences or ordered lists (ol) maybe
<text xml2ol:font-family='["Arial", "Verdana"]'/>
where the order is significant.

I guess someone can think of something better...
Stephen D Green

On 10 December 2010 09:53, Olivier Rossel <olivier.rossel@gmail.com> wrote:
> On Fri, Dec 10, 2010 at 10:15 AM, Stephen Green
> <stephengreenubl@gmail.com> wrote:
>>> A better solution is to use xsd:list datatype :
>>> <foo value="bar spam"/>
>>> but that is not known.
>> reminds me - I was thinking the WG could add an xml:json datatype
>> which might solve this (but I would hope there would be a better
>> way to allow JSON-like functionality in an attribute).
> Attributes cannot describe structured content.
> So we modelize structured attributes with subelements.
> Unfortunately these "structured attributes as subelements" mix with
> the subelements that represent
> the relationships between the resources.
> Let's consider this idea of more powerful attributes:
> an element could now be really separated in two parts:
>  - its XML attributes describing all the attributes of the resource
>  - its sub-elements that REALLY correspond to the relationship it has
> with other resources
> I think it would REALLY make things clearer.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.