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

Re: schema-1 (was something about keys, a long while a

Subject: Re: schema-1 (was something about keys, a long while ago)
From: Joerg Pietschmann <joerg.pietschmann@xxxxxx>
Date: Tue, 16 Oct 2001 10:31:10 +0200
Re:  schema-1 (was something about keys
David Carlisle <davidc@xxxxxxxxx> wrote:
> However I'm still not toally convinced. It seems to me relatively rare
> to have lots of different element names (would have been called eleemnt
> types in an earlier era) which all have the same schema type and all
> need to be processed in the same way.
Hmm, actually, until very recently i thought the same way. Indeed,
in document processing this can be reasonably expected to be rare.
However, if you are using XML to transfer structured, strongly typed
data between applications (B2B: SOAP/ebXML...) you may suddenly
find matching by type a good idea.
Just another example: there is quite often money involved in B2B.
For this, you form a complex data type by stringing the value (a number)
and a currency code toghether. You might want to process data of this
type might consistently (e.g. pring negative values in red), but
use it under a lot of different names (offeredPrice, paidPrice,
amountPaid, taxValue...).

Simple types like codes defined by a regexp could be another example.

> If they have the same internal
> structure and the same processing one wonders what's gained by calling
> them different names.

They can be used to denote roles.

> Given that you do have lost of xxx-date element names you have to
> _somewhere_ mapo them all to date. You say you don't want a long list in
> a template match  (or equivalenty one assumes a lot of individual
> templates each calling a named "date" template) but the information has
> to be somewhere, for example in a list of type assignments in the
> schema, this doesn't seem so much easier to maintain.

Hmm, i'll have to study XSchema more closely. Maybe i'm on the wrong
path with my notes above.

Regards
J.Pietschmann

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.