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

Re: Are we losing out because of grammars?

  • From: "K.Kawaguchi" <k-kawa@b...>
  • To: James Clark <jjc@j...>
  • Date: Fri, 02 Feb 2001 10:55:54 -0800

tdll

> A second scan is quite a big price to pay.  How do you store the result
> of the type assignment? If you keep in memory, that would mean you would
> be using memory proportional to the size of the input document, wouldn't
> it?

Exactly. And that's where "effortlessness" (or TDLL(1)) comes into play.


> > In other words, I think it's sufficient too, but I don't even want to
> > see the ancestor information. If I can receive type, all I need to see is
> > the type.
> 
> Here I don't agree.  In general I think I may need to look at ancestor

I see. You're right.


> That's not quite what I'm after.  I'm more interested in reporting
> datatypes than I am in reporting labels, so I want to know whether I can
> report datatypes unambiguously regardless of whether I can report labels
> unambiguously.  For example, given the following TREX pattern

Your problem statement is well understood. So in your view,
"interpretation" of TREX is just datatype for every attribute and some
text, right?


Well, I need some time to think about. Off the top of my head, datatype
ambiguity and label ambiguity are essentially the same thing.


<choice>
  <element name="e">
    <attribute name="a" type="integer" />
    <ref name="foo" />
  </element>
  <element name="e">
    <attribute name="a" type="string" />
    <ref name="bar" />
  </element>
</choice>

Because for the case like this, the algorithm have to check whether those
two "e" are ambiguous, to determine datatype ambiguity.

So my impression is that the algorithm will be very naive (powerless?)



regards,
----------------------
K.Kawaguchi
E-Mail: k-kawa@b...


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.