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

Re: Attributes: syntax hacks


subject attribute syntax
How about...

<ur l="me1.jpg"/>
<ul l="me2.jpg"/>

or some such...

Seairth


----- Original Message ----- 
From: "Bullard, Claude L (Len)" <clbullar@i...>
To: "XML-DEV Discussion" <xml-dev@l...>
Sent: Friday, June 13, 2003 9:26 AM
Subject:  Attributes: syntax hacks


> A simple issue that pops up when using 
> XML to represent object-oriented languages 
> is the mismatch between fields and attributes. 
> If a field has structure, it shouldn't be 
> an attribute.  But when the expression is 
> simply repeatability (ie, the attribute 
> contains an array of string values), the 
> messy problem of spaces pops back out.
> 
> To me these are ugly hacks:
> 
> URL='"me1.jpg" "me2.png"' and 
> URL='&quot;me.jpg&quot;&quot;me2.jpg&quot;'
> 
> and dicey because:
> 
> o  they are vulnerable to authoring errors, 
> so weakening the XML document where it is 
> suppose to be strong: parse and go.
> 
> o they are vulnerable to the machinations 
> of XML-like systems such as the SOAP 
> processor which does nothing with the 
> entity declaration.
> 
> But considering that filenames can have 
> spaces in them in both MS and Unix operating 
> systems, other than stuffing %20 in the strings, 
> that is a likely solution.
> 
> Other than 
> 
> <url>me1.jpg</url>
> <url>me2.jpg</url>
> 
> what are better solutions?
> 
> len
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
> 
> 

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
 

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.