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

Re: schemas and transforms, was: Path 1.5? (was typing and markup)

  • To: David Carlisle <davidc@n...>
  • Subject: Re: schemas and transforms, was: Path 1.5? (was typing and markup)
  • From: jborden@a...
  • Date: Wed, 08 May 2002 15:40:07 +0000
  • Cc: xml-dev@l...

path.1.5

David Carlisle wrote:

> ... All it takes is one
> <xsl:element name="{substring(.,2,5)}"> (or its Xquery equivalent)
> and you haven't a hope of figuring out any more specific type for
> the result than "element" you can't tell what element it is never mind
> if it is valid to use such an element at that point in any possible
> result tree that might be constructed.
> 

Yup. Of course the above is similar to a C++ style 
(foo) cast. The only proper response is that the range of the
"substring" function is not limited to the required element names
i.e. the constructed element might be anything, hence use
of such a function might cause the 'static validation' to fail.

On the other hand, if the types were constructed using proper
regular expressions (in this case for strings) and if the type 
system understood the "substring" function then yes it is possible
that such a 'static validation' would succeed.

That is to say, just because XQuery might enable something,
it doesn't imply that such enabling would be without cost --
which is ultimately what this debate is weighing.

My own feeling is that XSLT 1.0/XPath 1.0 are good enough
such that folks who want to avoid the overhead of XPath2/XQuery
can indeed do that -- just use XPath 1.0/XSLT 1.0 -- people
should resist the temptation to 'upgrade' to the latest
version number just because it exists 
(writing from an NT4.0 box, and perfectly happy doing so)

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.