|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Query about doc well-formedness
I'm not quite sure if you're agreeing with me here so I'll run through the process as I see it and you can correct my mistakes: i) I have a well-formed document thus: <root> <text> Blah blah blah &ent1; </text> &ent2; </root> &ent1; and &ent2; are by definition parsed entities. But within the above document there is no indication as to whether the 'contents' of the entity (the substitution which occurs at parse time) are well-formed. So Q1) will a non-validating parser flag an error when it encounters either of the entity references above? My thinking here is that it should, as parsing means that the substitution should occur. Am I wrong here? So (ii) in order to avoid the referencing problem I put <!ENTITY....> declarations in the doc above to provide the 'answers' to the entity references. Q2) Will a non-validating parser know how to deal with such <!ENTITY...> declarations and thus not flag errors on the entity references at parse time? I.e. will I avoid being forced to use a validating parser to deal with the document. regards, Peter Jones WebDev Technical Editor Wrox Press mailto:peterj@w... *************** Wrox Press UK Ltd. http://www.wrox.co.uk Tel 44 121 706 6826 Fax 44 121 706 2967 > -----Original Message----- > From: Henry S. Thompson [SMTP:ht@c...] > Sent: Tuesday, August 25, 1998 2:03 PM > To: Peter Jones > Subject: RE: Query about doc well-formedness > > Ah, I see a source of your confusion. PARSED entity doesn't > necessarily mean VALIDATED, just processed as XML as the processor is > processing XML in the matrix document, so in the case of a > well-formedness-checking-only processor, PARSED means well-formed. > > ht 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/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








