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

Re: entity definitions


entity definitions
On Mon, 26 Apr 2004 23:10:56 +0100
David Carlisle <davidc@n...> wrote:
> > This proposal is intended to modify XML 1.0 by changing parts of
> > section 4.1, specifically creating an alternative mechanism to fulfill
> > the Entity Declared WF/V Constraint.
> 
> As with schema languages, there are benefits in not forcing any
> particular declaration language, but there would be great benefit
> in allowing undefined entities to be(only) a validity error.
> to allow such layering of new declaration syntaxes, but this was
> explictly rejected for 1.1 and I don't see a 2.0 coming any time soon.

*shrug*  The Namespaces recommendation provides an example of an alternate
path.  It depends, in part, upon interpretation of the Entity Declared WFC
and VC paragraphs of section 4.1.  See below.

> > The first clause of the same paragraph, "In a document without any
> > DTD" is problematic, potentially.  *shrug*
> 
> It's a real problem, not a potential one.
> <!DOCTYPE x SYSTEM "x-wibble:wobble">
> <x>&foo;</x>
> is well formed but not valid
> <x>&foo;</x>
> is not well formed.

But depending upon how you read these two paragraphs, the following
possibly is well-formed (and possibly valid, if the entity is declared in
a different schema language):

<?xml version="1.0" standalone="no" ?>
<x>&foo;</x>

This is particularly true if the problematic phrase "without any DTD" is
read more generally as "without any schema", but is potentially
justifiable from clause three of the same sentence and the first clause of
the first sentence of the VC constraint.

> > Bob Foster also suggested, in email, that it might be possible to use
> > XSLT to perform a transformation (pick up the entity and entities PIs,
> > and stick them in the external subset).  I may need to ask on
> > xsl-list,
> 
> It's not possible as the XPath data model has no undefined entities, so
> even though the first example above is potentially well formed, 
> it will be treated like the second and generate a fatal error on input.

*sigh*  That's what I thought, thanks.  Oh, well.

Amy!
-- 
Amelia A. Lewis                    amyzing {at} talsever.com
I have spent nights with matches and knives, leaning over ledges, only 
two flights up.  Cutting my heart, burning my soul.  Nothing left to
hold.  Nothing left, but blood and fire.
                -- Indigo Girls

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.