OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Attributes: syntax hacks

[ Lists Home | Date Index | Thread Index ]

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 

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 


what are better solutions?



News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS