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

Re: Can we treat XML elements and attributes as sets

  • To: Michael Kay <mike@s...>
  • Subject: Re: Can we treat XML elements and attributes as sets
  • From: Elliotte Harold <elharo@m...>
  • Date: Sun, 21 Aug 2005 08:47:49 -0400
  • Cc: 'Mukul Gandhi' <mukul_gandhi@y...>, xml-dev@l...
  • In-reply-to: <20050821121451.8979C48360@m...>
  • References: <20050821121451.8979C48360@m...>
  • User-agent: Mozilla Thunderbird 1.0+ (Macintosh/20050712)

mathematical sets elements
Looking at that particular paragraph right now (p. 63) it doesn't seem 
precise enough. It should be clearer that it's talking about element and 
attribute names rather than element and attribute instances, though I 
suspect that can be gathered from context. That whole sentence about 
"The URIs partition the element names and attributes into disjoint sets. 
" could be deleted without losing anything.

The bit about the 1-1 relationship between namespaces and XML 
applications is also too strong. It completely misses the existence of 
numerous different XML applications that have no namespace, or that are 
in the null namespace if you prefer.

I'd used an example of genuine mathematical sets a little earlier in the 
chapter so I probably had sets on the brain when I wrote that. I'll see 
if I can clean this up in the next printing. How about this:

Namespaces distinguish between elements with different meanings but the 
same name by assigning each element a URI. Generally, all the elements 
from one XML application are assigned to one URI, and all the elements 
from a different XML application are assigned to a different URI. These 
URIs are called namespace names. Elements with the same name but 
different URIs are different kinds of elements. Elements with the same 
name and the same URI are the same kind of element. Most of the time a 
single XML application has a single namespace URI for all its elements, 
though a few applications use multiple namespaces to subdivide different 
parts of the application. For instance, XSL uses different namespaces 
for XSL Transformations (XSLT) and XSL Formatting Objects (XSL-FO).

I think that eliminates most of the pretentious pseudo-math I sometimes 
slip into.

-- 
Elliotte Rusty Harold  elharo@m...
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim

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.