Lists Home |
Date Index |
- From: firstname.lastname@example.org (David G. Durand)
- To: email@example.com
- Date: Sat, 29 Nov 1997 17:02:58 -0500 (EST)
At 4:46 PM -0000 11/29/97, Peter Murray-Rust wrote:
>The only area of fuzziness is what the default and optional behaviours of a
>parser (sic) are. If I write:
I don't think there is any fuzziness at all.
><!DOCTYPE HTML SYSTEM "html20.dtd" [
><!ENTITY pythagoras SYSTEM "pythagoras.xml"> <!-- in MathML -->
><P>This is Pythagoras' theorem:<BR>
>and I run it through a parser what will happen? The answer is
>parser-dependent. It might:
> - always include and validate external entities in which case there
>be a validation error (MathML uses a different DTD from HTML). If the
>entity is valid, then it creates a 'single document' which is easy to
>search, etc. One disadvantage is that (for Java) the document could get too
>big for the JVM.
If the MathML elements are not declared in the DTD, _no_ validating parser
can ever accept this as legal.
> - offer a commandline switch that allows inclusion of external
>defers their expansion to the application/processor. In that case the
>*application* has to be able to able to run a parser over the 'included'
No, external entities are parsed in place. WF-only applications might not
follow the entities (under user choice, whether interactive or
command-line), or they might folliow them and present the information.
Parsing relative to a different DTD would be unfortunate behavior, since
validation should be done according to the rules of XML.
Of course, a WF application might jsut swallow the elements and use its own
stylesheet language to format some math.
>(JUMBO can do this at present - it can even use a different parser from the
>initial one, which may be useful if they have different behaviours).
You mean if they have bugs?
>Note, of course, that an application may also want to run a validating
>parser over the targets of HREF and JUMBO can do this as well.
sure... it could, but that would be odd, since you can't include a _valid_
XML document into either a valid or a well-formed document, since the
Doctype delcaration is not legal in the isntance.
You would have to to refer to the external entity using an ENTITY
attribute, rather than expanding it via an entity reference if you want to
make valid use of this kind of processing based on entities.
David Durand firstname.lastname@example.org \ david@dynamicDiagrams.com
Boston University Computer Science \ Sr. Analyst
http://www.cs.bu.edu/students/grads/dgd/ \ Dynamic Diagrams
MAPA: mapping for the WWW \__________________________
xml-dev: A list for W3C XML Developers. To post, mailto:email@example.com
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:firstname.lastname@example.org the following message;
To subscribe to the digests, mailto:email@example.com the following message;
List coordinator, Henry Rzepa (mailto:firstname.lastname@example.org)