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

Re: xml spec 1.0 validity constraint for ID/IDREF

  • From: John Cowan <jcowan@r...>
  • To: gopi <gopi@a...>, "xml-dev@x..." <xml-dev@x...>
  • Date: Wed, 29 Mar 2000 12:40:01 -0500

id idref
gopi wrote:

> I felt that XML is not just sub-set of SGML, but it puts some "restrictions"
> on SGML documents.

XML *is* a subset of SGML *because* it puts restrictions on SGML documents.

>  So, if you have any SGML document,
> and try to convert to XML document, it cannot be converted automatically or
> it is not well formed (or valid) XML document. So, it still differs with
> SGML in certain ways.  Even though SGML is the base for XML spec, it is even
> now not making sure that "every" SGML doc is not XML document (if you parse
> using XML processor).  (If what I have written is wrong, correct me before
> somebody also misinterpret).

No, this is correct.

>         So, why should we still stick on to this "buggy" definition for ID/IDREF.
> Anyway, SGML doc cannot be processed using XML processor.  If we change the
> definition of ID/IDREF , we are not doing any major change in
> "compatibility".

The compatibility issue is the other way about: SGML processors can accept
XML documents.  Changing the definition of an ID attribute would break that.

>         Here, I got it.  So what I said is correct. Every SGML document is not
> "well formed" XML document. So many of SGML features are invalid in XML.
> Let's do the same thing with ID/IDREF also?

On the contrary. You are trying to make an XML feature which is invalid SGML.

>         No, XML processor is not just doing this, it is doing that "extra thing" of
> checking the starting character of value.  Whether first character is letter
> or not :-(,  since it is specified in XML spec.

SGML makes a distinction between "name-start characters" and "name characters";
in addition, there are also other characters that are not allowed in names
at all.

XML inherits this distinction.

>         Instead of having one more layer of implementation, better to change the
> definition in XML spec itself.  I am sure w3c has really responded to
> XML-DEV activities positively.  They won't be so rigid to make us do one
> more layer of specification or implementation on XML spec.

Changing the XML spec is not impossible, but not easy either.  One of its
strong points has been its stability in a changing Web world.
 
>         But XML "has" to become that magic bullet since it has all qualities to
> become, but need some refinement.  It has already made so much news in the
> industry that, everyone is trying to solve their problem with XML and it is
> not possible to stop them now.  XML has to come up to their expectation in
> order to stand.

Just because a feature sounds appealing to you is not evidence that it should be
used in your application.

-- 

Schlingt dreifach einen Kreis um dies! || John Cowan <jcowan@r...>
Schliesst euer Aug vor heiliger Schau,  || http://www.reutershealth.com
Denn er genoss vom Honig-Tau,           || http://www.ccil.org/~cowan
Und trank die Milch vom Paradies.            -- Coleridge (tr. Politzer)

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.