logo       

Re: Using grammarpool with included schemas: msg#00008

Subject: Re: Using grammarpool with included schemas
Ok, if that's all I will do that, but it was more the principal that I do not want to know how the schema is resolved b the parser, I only want to know if it was successful or not. Still I believe the support for schema resolving is less compared to DTD's. For DTD's you get all you want publicid systemid or name of the root. All are also keys for the grammarpool. For schemas you get nothing. The most important thing (the namespace, also used as key in the grammarpool, which also is a indication of importance) lacks. This makes it very hard to return your own inputsource.

Op 7-jul-2006, om 23:08 heeft Michael Glavassevich het volgende geschreven:

Dick Deneer <dick.deneer@xxxxxxxxxxxxxxxxxxxxx> wrote on 07/07/2006
04:00:09 PM:

You may be theorically right, but it is obvious that it would be very
practical to have it available together with the systemid in the
entityResolver.  Returning a schema with another namespace is just
useless.

And in continuing about my question if the parser will resolve the
entity by itself or not, I will suggest for another property  where
you van set a kind of finalResolver with the same method as
resolveEntity, that wil get a callback if the parser did not find the
entity. Then you get a last chance to resolve it yourself.

I don't see the need for this. You already get a chance in your
EntityResolver and it can try opening an InputStream from the system ID
(the default behaviour) and if that fails it can do something else.

Op 7-jul-2006, om 20:58 heeft Joseph Kesselman het volgende geschreven:

A namespace name, although it is expressed as a URI, is just a
name. Normal
XML processing never never attempt to retrieve anything from it, so
it is
never processed by the EntityResolver.

(The Semantic Web group may eventually define what, if anything,
might be
accessable through the namespace URI. But for now, treat it just as a
string in URI syntax.)

______________________________________
"... Three things see no end: A loop with exit code done wrong,
A semaphore untested, And the change that comes along. ..."
  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish
(http://www.ovff.org/pegasus/songs/threes-rev-11.html)


-------------------------------------------------------------------- -
To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe