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

RE: EMBED and validation

  • From: Peter Murray-Rust <peter@u...>
  • To: xml-dev@i...
  • Date: Sat, 29 Nov 1997 16:46:34

embed validate
At 10:09 29/11/97 -0500, Eve L. Maler wrote:
>I don't think I've seen it explicitly suggested here, so here goes.  If you
>want to ensure that what's pointed to is real XML, and "belongs" in that
>location, how about using a plain old external text entity?  With a
>validating XML processor, you can guarantee that (a) the entity will be
>expanded in place before it even gets to the application and that (b) it
>will be validated in context.

Thanks Eve - this is undoubtedly the simplest way of 'including' things and
a key feature of XML. This needs promoting as much as possible, and
application writers and authors should try to build entity management into
their systems.
(I am waiting for more experience to see exactly what people want, but I
expect to add this to the JUMBO editor).

The only area of fuzziness is what the default and optional behaviours of a
parser (sic) are. If I write:

<!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 will
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.

	- offer a commandline switch that allows inclusion of external entities OR
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'
(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).


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.

Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary

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...)


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.
First Name
Last Name
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.