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

RE: external unparsed entities in a XML document

  • From: Andy.Bradbury@s...
  • To: murali@n...
  • Date: Thu, 11 Nov 1999 18:46:53 -0000

usage of unparsed entities
Murali

Please excuse my previous mail, I obviously completely misunderstood your
question.
The trouble with such an open list is that you never know whether someone is
a newbie or not until they've posted a message or two.  I realise now that
you definitely do not belong in this category.

Regards

Andy B.


-----Original Message-----
From: Murali [mailto:murali@n...]
Sent: 11 November 1999 14:59
To: 'philipnye@f...'; Murali
Cc: 'xml-dev@i...'
Subject: RE: external unparsed entities in a XML document


Hi Philip

I think i did not put properly my question. 
What i want to know is when i am parsing the XML document ( either using DOM
api or 
SAX api ) is it possible to find out what subset of external entities
defined in the DTD
are used in the XML document? 
e.g., In the SAX api, there is a listener called "Entityresolver" ( which
will be called 
when parser encounters either parsed or unparsed external entities). But it
looks like this
method is not getting called for the "external unparsed" entites.

thanks for you help.
Murali
-----Original Message-----
From: Philip Nye [mailto:philipnye@f...]
Sent: Thursday, November 11, 1999 8:22 AM
To: Murali
Subject: Re: external unparsed entities in a XML document


> Is it possible to find out the what are the "external unparsed entities"
in
> an XML document ?

Yes it is but it is quite hard to find all the pieces in the XML 1.0
Spec.

External unparsed entities are values which attributes may take. Look at
sections 4, 4.2.2 and 3.3 and production [56] for a start.

e.g. Usage looks something like this.

In the DTD

<!NOTATION someNotation PUBLIC "notationIdentifier" >
<!ENTITY EUEinstance SYSTEM "whereToGetItFrom" NDATA someNotation >
<!ELEMENT anElement EMPTY >
<!ATTLIST anElement entityAttribute ENTITY>

then in the document

<anElement entityAttribute="EUEinstance" />


Philip Nye
-- 
Philip Nye
Engineering Arts
72 Herberton Road  ~  Bournemouth  BH6 5HZ  ~  UK
tel +44 (0)1202 418236  ~  fax +44 (0)1202 418676
mailto:philipnye@f...


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN
981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following
message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.