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

Re: Namespaces,

  • From: Richard Tobin <richard@c...>
  • To: rpbourret@r...
  • Date: Wed, 01 Aug 2001 01:16:40 +0100 (BST)

Re: Namespaces
[Oops, I mis-spelled the xml-dev address in the first copy of this.]

>I understand the use case, but I'm not convinced I like the solution,
>since the resulting data is non-portable. That is, if you remove an
>unqualified child element from its parent and transfer it to another
>file, you've lost the context and no longer know how to interpret the
>data. This is not the case with elements in namespaces.

This is quite true.

Simon points out (and I hadn't thought of it like this until he said
it) that Schemas could solve this problem in certain situations,
because the type assigned by the schema can be carried around in the
PSVI.  Unlike Simon, I don't think this constitutes a conspiracy to
force people to use XML Schemas.  In any case, preserving type
information through transformations is error-prone to say the least
(see discussions about XInclude).

>is there anything you can do with an attribute that you can't
>do with a PCDATA-only child element?)

I believe it was a deliberate decision in XML Schemas to try and make
simply-typed elements and attributes as similar as possible in this
respect.

-- Richard

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.