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

what 'isa' piece of xml? was Re: Co-operating with Architectur

  • To: "Pete Kirkham" <pete.kirkham@b...>, <xml-dev@l...>
  • Subject: what 'isa' piece of xml? was Re: Co-operating with Architectural Forms
  • From: "Jonathan Borden" <jborden@m...>
  • Date: Fri, 1 Feb 2002 09:24:28 -0500
  • References: <"020201124651Z.WT19677. 23*/PN=Pete.Kirkham/OU=Technical/OU=NOTES/O=BAe MAA/PRMD=BAE/ADMD=GOLD 400/C=GB/"@MHS>

what isa
Pete Kirkham wrote:
>
> Paul Prescod wrote:
> > The GI is the name of the type. Of course a name is not the same as the
> > thing. Depending on how you look at the universe the "real type" is a
> > totally abstract construction or a thing defined in a DTD.
>
> Or if you're used to using XMLSchema, then the mapping from tagname/GI to
element
> type is defined by the parent element's element type as well; so you're
aware that
> they are not one_and_the_same.
>

Right, we were talking about XML 1.0's definition of 'type'. XML Schema's
(and RELAXNG's equivalent for that matter) local elements complicate the
situation.

One can 'normalize' an [XML document + schema] into a list of

{xpath, value, type}

which represents the list of XPaths in a particular document, the values are
whatever is at the end of those paths, and the typeconstraint is whatever is
supposed to be at the end, e.g. "string" "element" "attribute" "ID"
"integer" etc etc -- XML Schema uses a QName to specify the type, RELAXNG
uses a pattern, perhaps a piece of XML, or even a non-XML type specifier ala
XDuce.

Rick Jelliffe has recently talked about the relationship of this to
Schematron, the XML Schema formalism talks about normalizing types etc, so
really what I have just written is a short, relatively non-technical
description of what these formalisms say.

To summarize, a more general view of a type is that it is a property of the
_path_ to the piece of XML, not the GI itself, and that the type is a
constraint on what may appear at the end of this path (i.e. a regular
expression).

Jonathan



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.