Altova Mailing List Archives


Re: [xml-dev] Attributes: syntax hacks

From: "Seairth Jacobs" <seairth@-------.--->
To: "xml-dev" <xml-dev@-----.---.--->
Date: 6/17/2003 5:36:00 AM
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: [xml-dev] 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>
> 
>

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.